<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Arch Linux迁移计划 | Mox的笔记库</title><meta name="keywords" content="Working"><meta name="author" content="MocusEZ"><meta name="copyright" content="MocusEZ"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="自由的代价总是昂贵的，但未必使人感到幸福">
<meta property="og:type" content="article">
<meta property="og:title" content="Arch Linux迁移计划">
<meta property="og:url" content="https://www.mocusez.site/posts/b081.html">
<meta property="og:site_name" content="Mox的笔记库">
<meta property="og:description" content="自由的代价总是昂贵的，但未必使人感到幸福">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://pic.rmb.bdstatic.com/bjh/96117c842daeb305932d8e1ee65ac796.png">
<meta property="article:published_time" content="2022-06-28T03:26:26.000Z">
<meta property="article:modified_time" content="2023-01-30T07:37:00.000Z">
<meta property="article:author" content="MocusEZ">
<meta property="article:tag" content="Working">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://pic.rmb.bdstatic.com/bjh/96117c842daeb305932d8e1ee65ac796.png"><link rel="shortcut icon" href="/img/title.jpg"><link rel="canonical" href="https://www.mocusez.site/posts/b081"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//hm.baidu.com"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?c85c9eaebc158345532b86397a6dded9";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到您查询的内容：${query}"}},
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Arch Linux迁移计划',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-01-30 15:37:00'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><meta name="generator" content="Hexo 6.2.0"><link rel="alternate" href="/atom.xml" title="Mox的笔记库" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/head.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">61</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链&amp;私人收藏</span></a></div><div class="menus_item"><a class="site-page" href="/board/"><i class="fa-fw fas fa-user"></i><span> 留言板</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://pic.rmb.bdstatic.com/bjh/96117c842daeb305932d8e1ee65ac796.png')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">Mox的笔记库</a></span><div id="menus"><div id="search-button"><a class="site-page social-icon search"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链&amp;私人收藏</span></a></div><div class="menus_item"><a class="site-page" href="/board/"><i class="fa-fw fas fa-user"></i><span> 留言板</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Arch Linux迁移计划</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-06-28T03:26:26.000Z" title="发表于 2022-06-28 11:26:26">2022-06-28</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-01-30T07:37:00.000Z" title="更新于 2023-01-30 15:37:00">2023-01-30</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/Arch-Linux%E6%8A%98%E8%85%BE/">Arch Linux折腾</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Arch Linux迁移计划"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h1 id="Arch-Linux迁移计划"><a href="#Arch-Linux迁移计划" class="headerlink" title="Arch Linux迁移计划"></a>Arch Linux迁移计划</h1><h2 id="食用指北"><a href="#食用指北" class="headerlink" title="食用指北"></a>食用指北</h2><p>如果是从零开始安装，建议直接跳到 大佬教程 章节，无需看完正文内容</p>
<p>对于Linux的苦难哲学论述感兴趣的，可以翻到文章结尾去找</p>
<p>善用 Ctrl+F 可以事半功倍</p>
<p>后续还会不定期填坑更新</p>
<p>本文的Arch Linux安装于2022年6月，不保证有关Arch Linux内容在一年后依然有效</p>
<h2 id="前言"><a href="#前言" class="headerlink" title="前言"></a>前言</h2><blockquote>
<p>自由的代价总是昂贵的，但未必使人感到幸福<br>自由必然是需要代价的，你要求的自由度越大，实现的难度系数越高，代价就越大<br>阳光之下总有阴影<br>不自由才能衬托自由<br>人类是群居动物，社会规则之外争取到的自由，格外珍贵，当然昂贵</p>
</blockquote>
<blockquote>
<p>2023.1.30最后更新</p>
<p>由于Arch Linux更新kernel 6.18的时候，硬件管理出现问题（电源灯闪烁，CPU频率大幅度降低），外加调试KVM显卡直通时对硬件造成的影响，重新用回Windows了</p>
</blockquote>
<h2 id="开始"><a href="#开始" class="headerlink" title="开始"></a>开始</h2><p>这是一项我长期计划的一个任务：使用Linux完成Windows的替代</p>
<p>随着学校大创项目的顺利解题，使我有机会告别那些优化垃圾的专属开发软件（Keil,Multisim），外加Nvidia开源了GTX 20系的驱动，扫清了之前退坑的问题。外加国产固态性能的提升，使得我有意愿+机会把Linux安装到新买的硬盘上。我周围也有使用Linux作为主力的同学，并且也使用了一年左右无恶意问题，这些因素都极大促成了这个计划的进行。</p>
<p>于是，就有了这篇文章，用于记录Linux安装，选型，后续维护</p>
<p>这次回归并不是特别顺利的，因为即使在2022年，要想舒服的使用Linux，依然需要使用者的精细化调整，远不如Windows和MacOS的傻瓜与鲁棒性</p>
<p>这即是Linux的苦难哲学，使用Linux图形界面会使人变得不幸。而我只是个恰好走过这一段路的人（幸运人？发烧客？）</p>
<p><img src="https://pic.rmb.bdstatic.com/bjh/96117c842daeb305932d8e1ee65ac796.png" alt="image.png"></p>
<p>过往退坑经历回顾：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://mocusez.site/posts/1080.html">联想拯救者R7000 2020版 Manjaro&#x2F;Arch 安装N卡驱动</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://mocusez.site/posts/8eee.html">Windows的WSL2+Docker初探</a></p>
<p>如果对Linux操作系统不熟悉的话，可以先看看工具怎么用</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://linuxtools-rst.readthedocs.io/zh_CN/latest/index.html">Linux工具快速教程</a></p>
<h2 id="Linux选型"><a href="#Linux选型" class="headerlink" title="Linux选型"></a>Linux选型</h2><p><strong>请注意，Linux选型问题历来都属于行业内的饭圈问题，本部分只讲述个人选型经历，没选上不代表系统不优秀，不代表专业意见，请勿采一捧一！！！</strong></p>
<p>我个人对Linux的需求是：能使用安全行业常用的安全套件，能运行Office,QQ等常见聊天办公工具，支持Nvidia原生驱动（优先选择2022年4月Nvidia的开源驱动）为科学计算做支撑，最好有LTS版，能在网上搜到该系统下常见的问题解决方案。</p>
<h3 id="Arch"><a href="#Arch" class="headerlink" title="Arch"></a>Arch</h3><p>不提供LTS版本，但是想要的绝大部分软件都能通过Pacman+AUR的组合找到。系统滚挂的问题没有大家想的那么突出，如果是个人使用的话不会有太大问题，而且网上踩坑的人很多。Arch的Wiki应该是我见过本地化做的最好的，内容详细，具备可操作性。</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.zhihu.com/question/29261987">怎样才能尽量避免archlinux滚挂？</a></p>
<p>安装麻烦，可以玩玩（但没想过，最后真的装了这个）</p>
<p>Steam Deck的系统也是基于Arch Linux的，可以期待未来的游戏性能</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/142601896">联想拯救者R7000安装ArchLinux所遇到的坑</a></p>
<p>详细安装教程可以看后面章节</p>
<p>在Windows下Vmware试着安装了Arch,下面是相关记录</p>
<h4 id="虚拟机内使用Arch的配置"><a href="#虚拟机内使用Arch的配置" class="headerlink" title="虚拟机内使用Arch的配置"></a>虚拟机内使用Arch的配置</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line">sudo bash</span><br><span class="line">pacman -Sy gtkmm net-tools</span><br><span class="line">pacman -Sy open-vm-tools</span><br><span class="line">pacman -Sy xf86-video-vmware</span><br><span class="line">pacman -Sy xf86-input-vmmouse <span class="comment">#安装VMWare的一些优化软件</span></span><br><span class="line">systemctl <span class="built_in">enable</span> vmtoolsd.service <span class="comment">#设置开机启动</span></span><br><span class="line">————————————————</span><br><span class="line">版权声明：本文为CSDN博主「大灰狼时间」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。</span><br><span class="line">原文链接：https://blog.csdn.net/zxcv960924/article/details/62229972</span><br></pre></td></tr></table></figure>

<h3 id="EndevourOS"><a href="#EndevourOS" class="headerlink" title="EndevourOS"></a>EndevourOS</h3><p>我同学在用的，基于Arch Linux,只不过个人有些排斥这样的小社区系统，所以最终没有选择这个</p>
<p>好像提供图形安装界面，也适合爱折腾的人试试。</p>
<h3 id="Ubuntu"><a href="#Ubuntu" class="headerlink" title="Ubuntu"></a>Ubuntu</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/174743063">拯救者R7000 2020&#x2F;GTX 1650 安装 ubuntu 20.04 双系统</a></p>
<p>周围有同学买了固态上Ubuntu,但一个搜狗输入法装了半节课还没装上就有些尴尬,使用AUR就没有这个问题。</p>
<p>由于没有查明Ubuntu对Nvidia开源驱动的合并情况，所以最终也没考虑 </p>
<h3 id="Pop-os"><a href="#Pop-os" class="headerlink" title="Pop_os"></a>Pop_os</h3><p>基于Ubuntu，一度成为我选择清单上的优先选择，因为其包含了良好的闭源驱动支持（也能解决我当时的退坑问题）</p>
<p>最后没选上纯粹是学校网太慢，即使挂代理也要下载很久，而我那时候已经把虚拟机里面的Arch玩起飞了，所以自然落选了。</p>
<p>由于2022年4-5月老黄放出了开源驱动，那闭源驱动自然就没有吸引力了</p>
<h3 id="Kali"><a href="#Kali" class="headerlink" title="Kali"></a>Kali</h3><p>做安全必备的系统，内置常用安全工具，要是能作为主力的话就不用开虚拟机或WSL开Kali了，可以用Blackarch实现部分替代</p>
<h3 id="Blackarch"><a href="#Blackarch" class="headerlink" title="Blackarch"></a>Blackarch</h3><p>黑客用Arch,相关软件源与Arch是通用的，选了Arch也能享受到Blackarch的好处</p>
<h2 id="大佬教程"><a href="#大佬教程" class="headerlink" title="大佬教程"></a>大佬教程</h2><p>绝大部分有关Arch的需求都可以在这些地方找到：</p>
<p>Arch的官方Wiki</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://arch.icekylin.online/">https://arch.icekylin.online/</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinuxstudio.github.io/ArchLinuxTutorial/">https://archlinuxstudio.github.io/ArchLinuxTutorial/</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.vpsee.com/2012/09/release-linux-system-disk-space-using-tune2fs/">释放 Linux 系统预留的硬盘空间</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.jianshu.com/p/05bf79b1878b">Arch Linux安装+KDE桌面+双显卡驱动一站式解决方案</a></p>
<h2 id="虚拟机配置"><a href="#虚拟机配置" class="headerlink" title="虚拟机配置"></a>虚拟机配置</h2><h3 id="KVM"><a href="#KVM" class="headerlink" title="KVM"></a>KVM</h3><blockquote>
<p>请不要在笔记本上随意配置KVM显卡直通</p>
<p>因为你永远也不会清楚笔电的BIOS到底能不能处理好英伟达显卡的电源管理</p>
</blockquote>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/397145106">Arch下的KVM win10客户机与宿主机使用samba共享文件的步骤</a></p>
<p><a href="">Archlinux下使用KVM代替Vmware</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.jianshu.com/p/392ae8181dc3">ArchLinux&#x2F;Manjaro 配置KVM环境</a></p>
<p>我选择的的是这个配置</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S qemu libvirt ovmf virt-manager bridge-utils dnsmasq</span><br></pre></td></tr></table></figure>

<p>bridge-utils 负责网络桥接</p>
<p>kvm底层需要 qemo和libvirt</p>
<p>ovmf :解决UEFI启动问题</p>
<p>dnsmasq :负责处理网络相关</p>
<p>ebtables 网络配置管理 非必须</p>
<p>开启libvirt服务</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">systemctl enable libvirtd</span><br><span class="line">systemctl start libvirtd</span><br></pre></td></tr></table></figure>

<p>加入用户组</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">usermod -a -G kvm username</span><br></pre></td></tr></table></figure>

<p>kvm 有一个专门针对 windows 的 virtio 的驱动， 不知道你用了这个没， 如果以传统的 ide 方式添加的硬盘，io 性能会特别的慢。</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://gitlab.archlinux.org/archlinux/arch-boxes/-/jobs/artifacts/master/browse/output?job=build:secure">Arch的KVM运行镜像</a></p>
<p>每次启动前都要手动开网络</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo virsh net-start --network default</span><br></pre></td></tr></table></figure>



<h4 id="win7特殊准备"><a href="#win7特殊准备" class="headerlink" title="win7特殊准备"></a>win7特殊准备</h4><p>2022年，win7连kvm驱动都不给了，virto-win得自己去翻镜像才能找到</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">latest supported for win7: 0.1.173-4</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/">https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/</a> </p>
<p>翻到了也没法安装成功</p>
<p>spice直通win7</p>
<p>参考这两篇</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/fjh1997/article/details/121204224">https://blog.csdn.net/fjh1997/article/details/121204224</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://dausruddin.com/how-to-enable-clipboard-and-folder-sharing-in-qemu-kvm-on-windows-guest/#Step_5_Enable_Folder_Sharing">spcice硬盘剪贴板复制</a></p>
<h3 id="Vmware"><a href="#Vmware" class="headerlink" title="Vmware"></a>Vmware</h3><p>ArchLinuxCn配备了软件，但下完linux-headers以后，dkms始终挂不上，只能推迟解决</p>
<h3 id="VirtualBox"><a href="#VirtualBox" class="headerlink" title="VirtualBox"></a>VirtualBox</h3><p>官方源就有，按照wiki做的基本没有大问题</p>
<h3 id="QEMU"><a href="#QEMU" class="headerlink" title="QEMU"></a>QEMU</h3><p>做ARM64的实验，查看QEMU版本</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">qemu-img -V</span><br></pre></td></tr></table></figure>

<p>可能还需要配合busybox制作img使用</p>
<p>但如果我只是偶尔跑一下arm64程序，没必要这么麻烦，安装qemu-user就行</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S qemu-user</span><br></pre></td></tr></table></figure>

<p>ctrl+A+X 是关闭qemu</p>
<p>参考国外的写法，把树莓派的系统跑起来了（看我写的另外的文章）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://gist.github.com/Ch0pin/191007e621e806a6283d5ec5416b8847#file-rasp">https://gist.github.com/Ch0pin/191007e621e806a6283d5ec5416b8847#file-rasp</a></p>
<p>注意，有一步需要修改</p>
<h2 id="系统安装与后续维护"><a href="#系统安装与后续维护" class="headerlink" title="系统安装与后续维护"></a>系统安装与后续维护</h2><h3 id="安装教程"><a href="#安装教程" class="headerlink" title="安装教程"></a>安装教程</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Installation_guide_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">Arch Installation guide</a></p>
<p>我本人是用archinstall脚本安装的（仅支持UEFI安装）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/513859236">2022.5 archlinux详细安装过程</a></p>
<p>安装KDE</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.linuxmi.com/arch-linux-kde-plasma-desktop.html">在 Arch Linux 中安装和配置 KDE Plasma 桌面</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/460826583">Manjaro KDE 调教配置及美化（2022.01.23）</a></p>
<h3 id="双系统安装"><a href="#双系统安装" class="headerlink" title="双系统安装"></a>双系统安装</h3><p>网上教程很多，建议是在有线网络下安装</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/138951848">2021 Archlinux双系统安装教程（超详细）</a></p>
<h3 id="KDE安装"><a href="#KDE安装" class="headerlink" title="KDE安装"></a>KDE安装</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.cnblogs.com/kainhuck/p/12893643.html">Arch安装后的配置（超详细）</a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">pacman -S --needed xorg sddm</span><br><span class="line">pacman -S --needed plasma kde-applications</span><br><span class="line">sudo systemctl enable sddm</span><br><span class="line">sudo systemctl enable NetworkManager</span><br><span class="line">sudo nano /usr/lib/sddm/sddm.conf.d/default.conf</span><br></pre></td></tr></table></figure>

<h3 id="关机慢"><a href="#关机慢" class="headerlink" title="关机慢"></a>关机慢</h3><p>我这里的KDE不时会遇到SDDM关不下的情况，就会造成关机过慢的情况</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://fevenor.com/2016/04/15/archlinux-long-time-to-shutdown/">ArchLinux关机慢的问题</a></p>
<p>vim &#x2F;etc&#x2F;systemd&#x2F;system.conf</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">DefaultTimeoutStopSec=10s</span><br></pre></td></tr></table></figure>

<h3 id="校园网下面安装"><a href="#校园网下面安装" class="headerlink" title="校园网下面安装"></a>校园网下面安装</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/qq_39091609/article/details/118395295">Arch Linux安装笔记(1)——校园网环境下基础安装</a></p>
<h3 id="配置U盘镜像"><a href="#配置U盘镜像" class="headerlink" title="配置U盘镜像"></a>配置U盘镜像</h3><p>Ventoy 1.0.15启动不了Arch的安装盘，但2022年后的Ventoy都能启动</p>
<h3 id="运行到tty3"><a href="#运行到tty3" class="headerlink" title="运行到tty3"></a>运行到tty3</h3><p>切换，但是图形界面会挂在后台</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">ctrl+alt+f3</span><br></pre></td></tr></table></figure>

<p>只保留命令行，图形界面会彻底关闭，但是这种情况中文显示有问题（待填坑）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">systemctl isolate multi-user.target</span><br><span class="line">systemctl isolate graphical.target</span><br></pre></td></tr></table></figure>



<h3 id="systemd-boot"><a href="#systemd-boot" class="headerlink" title="systemd-boot"></a>systemd-boot</h3><p>当时没安装GRUB,只安装了这个，不知道怎么调整成双系统，后面也没去动了</p>
<h3 id="KDE系统分区"><a href="#KDE系统分区" class="headerlink" title="KDE系统分区"></a>KDE系统分区</h3><p>后期可用这种办法吧&#x2F;home目录分离出去</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S filelight </span><br><span class="line">sudo pacman -S partitionmanager</span><br></pre></td></tr></table></figure>

<p>可以把新的硬盘挂载到&#x2F;home的文件夹下面，新买硬盘的话，扩容起来十分方便</p>
<p>分区助手有个小bug，如果想要运行二进制文件，你必须先要勾选“不允许执行二进制文件”，保存完以后再取消勾选才能生效</p>
<p><strong>根源解决方案是：fstab后面给盘符添加exec</strong></p>
<p>参考这篇文章:</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/Jianchi0001/article/details/118033452">ubuntu 磁盘挂载权限导致该分区无法执行二进制文件</a></p>
<h3 id="没有ifconfig与nslookup"><a href="#没有ifconfig与nslookup" class="headerlink" title="没有ifconfig与nslookup"></a>没有ifconfig与nslookup</h3><p>ifconfig,route在net-tools中，nslookup,dig在dnsutils中，ftp,telnet等在inetutils中,ip命令在iproute2中</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S net-tools dnsutils inetutils iproute2</span><br></pre></td></tr></table></figure>



<h3 id="systemctl"><a href="#systemctl" class="headerlink" title="systemctl"></a>systemctl</h3><p>设置系统启动的连接关系</p>
<p>systemctl enable 命令用于<strong>在上面两个目录之间，建立符号链接关系</strong>。 如果配置文件里面设置了开机启动， systemctl enable 命令相当于激活开机启动。 与之对应的， systemctl disable 命令用于在两个目录之间，撤销符号链接关系，相当于撤销开机启动。</p>
<h3 id="Nvidia开源驱动管理"><a href="#Nvidia开源驱动管理" class="headerlink" title="Nvidia开源驱动管理"></a>Nvidia开源驱动管理</h3><p>查看版本</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">cat /proc/driver/nvidia/version</span><br></pre></td></tr></table></figure>



<h3 id="解决蓝牙耳机麦克风没法用的问题"><a href="#解决蓝牙耳机麦克风没法用的问题" class="headerlink" title="解决蓝牙耳机麦克风没法用的问题"></a>解决蓝牙耳机麦克风没法用的问题</h3><p>需要修改配置方案才能使用，只有在这种模式下，才没有杂音</p>
<p><img src="https://pic.rmb.bdstatic.com/bjh/1c4471e4f1fc62eb5b75df07512a8d7b.png" alt="image.png"></p>
<p>听音乐的时候记得改回去，不然音效贼渣</p>
<h3 id="WARNING-REMOTE-HOST-IDENTIFICATION-HAS-CHANGED"><a href="#WARNING-REMOTE-HOST-IDENTIFICATION-HAS-CHANGED" class="headerlink" title="WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!"></a>WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!</h3><p>删掉之前认证的指纹即可</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">vim ~/.ssh/known_hosts </span><br></pre></td></tr></table></figure>



<h3 id="环境变量配置"><a href="#环境变量配置" class="headerlink" title="环境变量配置"></a>环境变量配置</h3><p>提供几个位置可供修改</p>
<p> ~&#x2F;.bashrc： </p>
<p>该文件包含专用于单个人的bash shell的bash信息，当登录时以及每次打开一个新的shell时,该该文件被读取。 </p>
<p>  单个用户此文件的修改会影响到他以后的每一次登陆系统和每一次新开一个bash。因此，可以在这里设置单个用户的特殊的环境变量或者特殊的操作，那么每次它新登陆系统或者新开一个bash，都会去获取相应的特殊的环境变量和特殊操作。</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">export PATH=/usr/local/bin:$PATH</span><br></pre></td></tr></table></figure>

<p>&#x2F;etc&#x2F;profile： </p>
<p>此文件为系统的环境变量，它为每个用户设置环境信息，当用户第一次登录时，该文件被执行。并从&#x2F;etc&#x2F;profile.d目录的配置文件中搜集shell的设置。 </p>
<p>  这个文件，是任何用户登陆操作系统以后都会读取的文件（如果用户的shell是csh、tcsh、zsh，则不会读取此文件），用于获取系统的环境变量，只在登陆的时候读取一次。 </p>
<h3 id="备份"><a href="#备份" class="headerlink" title="备份"></a>备份</h3><p>全盘备份方案</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dd if=/dev/sda | gzip &gt; sda.img</span><br></pre></td></tr></table></figure>

<p>有人说用Clonezilla，但具体也没有实操用过</p>
<h3 id="文件描述符"><a href="#文件描述符" class="headerlink" title="文件描述符"></a>文件描述符</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/143847169">文件描述符到底是啥？</a></p>
<p>Linux 中一切都可以看作文件，包括普通文件、链接文件、Socket 以及设备驱动等，对其进行相关操作时，都可能会创建对应的文件描述符</p>
<p>当一个应用程序刚刚启动的时候，0是标准输入，1是标准输出，2是标准错误。如果此时去打开一个新的文件，它的文件描述符会是3。POSIX标准要求每次打开文件时（含socket）必须使用当前进程中最小可用的文件描述符号</p>
<h3 id="检索工具"><a href="#检索工具" class="headerlink" title="检索工具"></a>检索工具</h3><p>在Windows下面有好用的Everything，在Linux下面</p>
<p>我用fsearch进行替代，在体验上还是不如Everything</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S fsearch</span><br></pre></td></tr></table></figure>

<p>目前的情况是无法输入中文，需要在其他地方编辑好以后复制上去。</p>
<p>命令行的话，建议fzf</p>
<h3 id="Man文档"><a href="#Man文档" class="headerlink" title="Man文档"></a>Man文档</h3><p>大名鼎鼎的Man手册，大部分想要的Linux相关指令资料都能在上面找到，提供中文版本阅读</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S man-pages-zh_cn</span><br></pre></td></tr></table></figure>



<h3 id="Pahole更新失败"><a href="#Pahole更新失败" class="headerlink" title="Pahole更新失败"></a>Pahole更新失败</h3><p>pahole和linux-headers是捆绑的，可经常是headers升级，但是pahole一升级就会出错</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">错误：无法提交处理 (有冲突的文件)</span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/libdwarves_reorganize.so </span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/libdwarves_reorganize.so.1 </span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/libdwarves_reorganize.so.1.0.0 </span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/python3.10/site-packages/__pycache__/ostra.cpython-310.opt-1.pyc </span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/python3.10/site-packages/__pycache__/ostra.cpython-310.pyc </span><br><span class="line">pahole: 文件系统中已存在 /usr/lib/python3.10/site-packages/ostra.py </span><br><span class="line">pahole: 文件系统中已存在 /usr/share/dwarves/runtime/Makefile </span><br><span class="line">pahole: 文件系统中已存在 /usr/share/dwarves/runtime/ctracer_relay.c </span><br><span class="line">发生错误，没有软件包被更新。</span><br></pre></td></tr></table></figure>

<p>目前唯一的解决方案，就是挨个删除以上文件</p>
<p>麻了，确实找不到其他方法了</p>
<h3 id="输入法"><a href="#输入法" class="headerlink" title="输入法"></a>输入法</h3><p>ctrl + . 全角与半角切换</p>
<h3 id="Aur软件包回滚"><a href="#Aur软件包回滚" class="headerlink" title="Aur软件包回滚"></a>Aur软件包回滚</h3><p>社区经常有人在那边瞎折腾，没经过验证就把包送到了社区（当然还是要感谢他们的努力，不然Arch的社区就不可能这么活跃，也没有那么多好用的包），也有直接删包跑路的人。Aur的包都是用Git管理配置文件的，要回滚其实也很简单</p>
<p>找到yay缓存的地方（一般是.cache&#x2F;yay）进入对应的软件，回滚Git记录，然后参考Arch_wiki  <a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Arch_User_Repository_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#%E5%AE%89%E8%A3%85%E4%B8%8E%E6%9B%B4%E6%96%B0%E8%BD%AF%E4%BB%B6%E5%8C%85">Arch User Repository</a> 安装即可</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">makepkg</span><br><span class="line">sudo pacman -U package_name-version-architecture.pkg.tar.zst</span><br></pre></td></tr></table></figure>



<h3 id="命令行浏览器"><a href="#命令行浏览器" class="headerlink" title="命令行浏览器"></a>命令行浏览器</h3><p>图一乐，毕竟现在都在用Vue,React的这一类工具的话，命令行浏览器根本就不可能渲染。命令行浏览器的效果就跟拿诺基亚老手机上网的效果差不多</p>
<p>一开始选择的是lynx</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S lynx</span><br></pre></td></tr></table></figure>

<p>发现lynx不支持中文后，改用w3m</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S w3m</span><br></pre></td></tr></table></figure>

<p>也就应急用一下吧</p>
<h3 id="玩原神"><a href="#玩原神" class="headerlink" title="玩原神"></a>玩原神</h3><p>七圣召唤启动器（bushi）</p>
<p>没有什么是AUR无法解决的问题</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S an-anime-game-launcher-bin</span><br></pre></td></tr></table></figure>



<h4 id="使用flatpak"><a href="#使用flatpak" class="headerlink" title="使用flatpak"></a>使用flatpak</h4><p>替换国内源<br>sudo flatpak remote-modify flathub –url&#x3D;<a target="_blank" rel="noopener external nofollow noreferrer" href="https://mirror.sjtu.edu.cn/flathub">https://mirror.sjtu.edu.cn/flathub</a><br>增加启动器源<br>flatpak remote-add –if-not-exists launcher.moe <a target="_blank" rel="noopener external nofollow noreferrer" href="https://gol.launcher.moe/gol.launcher.moe.flatpakrepo">https://gol.launcher.moe/gol.launcher.moe.flatpakrepo</a><br>安装启动器<br>flatpak install launcher.moe moe.launcher.an-anime-game-launcher-gtk</p>
<h3 id="隔离沙箱"><a href="#隔离沙箱" class="headerlink" title="隔离沙箱"></a>隔离沙箱</h3><h4 id="bubblewrap"><a href="#bubblewrap" class="headerlink" title="bubblewrap"></a>bubblewrap</h4><p>Flat使用的轻量沙箱</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S bubblewrap</span><br></pre></td></tr></table></figure>

<h4 id="firejail"><a href="#firejail" class="headerlink" title="firejail"></a>firejail</h4><p>没用过，另外一款沙箱工具，操作看起来更傻瓜化</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S firejail</span><br></pre></td></tr></table></figure>





<h2 id="USB命令行配置"><a href="#USB命令行配置" class="headerlink" title="USB命令行配置"></a>USB命令行配置</h2><p>Arch真的是一穷二白，我以为有的有关硬件的命令一个都没有</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S usbutils</span><br><span class="line">sudo pacman -S iw #配置无线网卡</span><br></pre></td></tr></table></figure>

<p>配合dmesg（display message）检查到底有没有启动成功</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo dmesg |grep -i usb</span><br></pre></td></tr></table></figure>

<p>选择格式，挂载对应U盘</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mount -t vfat /dev/sdb1 /mnt/usb</span><br></pre></td></tr></table></figure>



<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">ip link set dev wlp3s0 up // 用来将无线网卡接口启用</span><br><span class="line">iw dev wlp3s0 scan // 用来扫描周围的无线热点</span><br><span class="line">iw dev wlp3s0 connect &quot;your_essid&quot; // 此命令可以直接连接没有加密的热点</span><br></pre></td></tr></table></figure>



<h2 id="救砖"><a href="#救砖" class="headerlink" title="救砖"></a>救砖</h2><p>希望没机会用上，但还是要准备上以防万一</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://poemdear.com/2019/05/09/arch-linux%E7%B3%BB%E7%BB%9F%E4%BF%AE%E5%A4%8D%E6%8C%87%E5%8D%97/">Arch Linux系统修复指南</a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">mount /dev/nvme0n1p2 /mnt</span><br><span class="line">mount /dev/nvme0n1p1 /mnt/boot  #请将分区号换成你自己的</span><br><span class="line">arch-chroot /mnt</span><br></pre></td></tr></table></figure>

<p>将设备联网后更新内核</p>
<h2 id="日志"><a href="#日志" class="headerlink" title="日志"></a>日志</h2><p>journalctl</p>
<p>dmesg</p>
<h2 id="pacman配置问题"><a href="#pacman配置问题" class="headerlink" title="pacman配置问题"></a>pacman配置问题</h2><h3 id="取消掉一些不想要源"><a href="#取消掉一些不想要源" class="headerlink" title="取消掉一些不想要源"></a>取消掉一些不想要源</h3><p>发现pacman默认是从第一个源下载数据，之前一直用的是哈工大源，但哈工大源2022年10月的时候有点抽风，导致我无法收到Virtualbox 6.1的更新。换成阿里源以后更骚包，一堆软件警告我版本高于源。只好换成北外源</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo vim /etc/pacman.d/mirrorlist</span><br></pre></td></tr></table></figure>



<h3 id="archlinuxcn配置"><a href="#archlinuxcn配置" class="headerlink" title="archlinuxcn配置"></a>archlinuxcn配置</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://developer.aliyun.com/mirror/archlinuxcn">https://developer.aliyun.com/mirror/archlinuxcn</a></p>
<p>在福建的话，阿里源只有200kb&#x2F;s,换成北外源可以达到20MB&#x2F;s,于是就换成北外源了</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Server = https://mirrors.bfsu.edu.cn/archlinuxcn/$arch</span><br></pre></td></tr></table></figure>



<h3 id="错误：GPGME-错误：无数据"><a href="#错误：GPGME-错误：无数据" class="headerlink" title="错误：GPGME 错误：无数据"></a>错误：GPGME 错误：无数据</h3><p>校园网的登录依赖HTTP劫持，经常出现这种问题</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo <span class="built_in">rm</span> -R /var/lib/pacman/sync</span><br><span class="line">sudo pacman -Syu</span><br></pre></td></tr></table></figure>



<h3 id="软件升级-x2F-降级问题"><a href="#软件升级-x2F-降级问题" class="headerlink" title="软件升级&#x2F;降级问题"></a>软件升级&#x2F;降级问题</h3><p>如果遇到软件滚挂的情况（我刚安装第二天，Telegram就滚挂了）安装downgrade</p>
<p>downgrade完那个被降级的包就会被添加IgnorePKG里面</p>
<p>问题不对，立马降级</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">pancman -S downgrade</span><br><span class="line">sudo downgrade firefox</span><br></pre></td></tr></table></figure>

<p>软件不升级</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/chutuci5477/article/details/100773809">ArchLinux 配置pacman.conf不升级某个或多个软件包</a></p>
<h2 id="DNS配置"><a href="#DNS配置" class="headerlink" title="DNS配置"></a>DNS配置</h2><p>查看当前dns状态</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemd-resolve --status</span><br></pre></td></tr></table></figure>

<p>对照network manager修改即可</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/NetworkManager#/etc/resolv.conf">NetworkManager#&#x2F;etc&#x2F;resolv.conf</a></p>
<p>有时后dns服务会被systemd-resolved接管走，有空再去查</p>
<h3 id="Paccache-清理包缓存"><a href="#Paccache-清理包缓存" class="headerlink" title="Paccache 清理包缓存"></a>Paccache 清理包缓存</h3><p>pacman的包经常带有缓存以方便回滚，paccache则是用来清理长期永远用不上的包，可以节省不少空间</p>
<p>查看缓存占用的空间</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">du</span> -sh /var/cache/pacman/pkg/</span><br></pre></td></tr></table></figure>

<p>清理除 3 个最新版本之外的所有软件包</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo paccache -r</span><br></pre></td></tr></table></figure>

<p>删除已卸载软件包的所有缓存版本</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo paccache -ruk0</span><br></pre></td></tr></table></figure>

<p>参考：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://bynss.com/linux/759097.html">Arch Linux 中清理包缓存的推荐方法</a></p>
<h3 id="无效或已损坏的软件包"><a href="#无效或已损坏的软件包" class="headerlink" title="无效或已损坏的软件包"></a>无效或已损坏的软件包</h3><p>1.首先更新一下密钥，如果没有安装archlinux-keyring,请及时安装</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman-key --refresh-keys</span><br></pre></td></tr></table></figure>

<p>2.重新加载相应的签名密钥</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman-key --init</span><br><span class="line">sudo pacman-key --populate</span><br></pre></td></tr></table></figure>

<p>3。清除pacman 的缓冲文件</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Scc</span><br></pre></td></tr></table></figure>

<p>4.更新或者安装系统即可</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -Syu</span><br></pre></td></tr></table></figure>



<h2 id="日常软件"><a href="#日常软件" class="headerlink" title="日常软件"></a>日常软件</h2><h3 id="VScode"><a href="#VScode" class="headerlink" title="VScode"></a>VScode</h3><p>可以去AUR找微软的二进制包，但我选择开源的Code-OSS</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S code</span><br></pre></td></tr></table></figure>

<p>这种软件用的不是微软的插件仓库，我找的时候发现找不到腾讯云函数的开发工具，在不用微软二进制包的情况下，可以去AUR找钩子,实时替换插件仓库</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S code-marketplace</span><br></pre></td></tr></table></figure>

<p>建议如果有商业插件需求的(比如说copilot)，还是老老实实用AUR的微软二进制包</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S vscode-bin</span><br></pre></td></tr></table></figure>



<h3 id="PDF浏览"><a href="#PDF浏览" class="headerlink" title="PDF浏览"></a>PDF浏览</h3><p>KDE自带的Okular</p>
<p>pdf转换操作，用pdftk</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/community/any/pdftk/">https://archlinux.org/packages/community/any/pdftk/</a></p>
<p>就没有图形化方案么(没有图形化反倒更好操作了？)</p>
<h3 id="网易云音乐替代"><a href="#网易云音乐替代" class="headerlink" title="网易云音乐替代"></a>网易云音乐替代</h3><p>yesplaymusic 第三方网易云 看起来比deepin的要好很多</p>
<p><img src="https://pic.rmb.bdstatic.com/bjh/4e9d6bf3353a3bba005ce77c3f54ef45.png" alt="image-20220624211942811.png"></p>
<p>Ctrl+ALt+left&#x2F;right 上一首&#x2F;下一首</p>
<p>Ctrl+ALt+up&#x2F;down 软件内音量up&#x2F;down</p>
<p>但没有电台就有些烦躁（听不了初弦大佬收集的明日方舟电台），还得用deepin打包的版本</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S netease-cloud-music</span><br></pre></td></tr></table></figure>

<p>能用，就是缩放的问题</p>
<h3 id="rar解压缩"><a href="#rar解压缩" class="headerlink" title="rar解压缩"></a>rar解压缩</h3><p>kde默认是用Ark</p>
<p>原生自带是不支持RAR解压缩的，还需要到Pacman手动添加rar软件包才支持rar解压</p>
<h3 id="OCR"><a href="#OCR" class="headerlink" title="OCR"></a>OCR</h3><p>白描OCR进行替代</p>
<p>pandaocr能跑的起来，用CrossWine就显得很傻(由于在虚拟机里跑的英文，pandaocr字体乱了，改成utf’8可以解决)</p>
<p>本地部署的话，就用trocr</p>
<h3 id="网盘挂载"><a href="#网盘挂载" class="headerlink" title="网盘挂载"></a>网盘挂载</h3><p>使用Rust版本的阿里云盘Webdav+Dolphin,实现云端同步</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S aliyundrive-webdav-bin</span><br></pre></td></tr></table></figure>

<p>真同步还是要用rclone</p>
<p>example</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sync /home/mocus/文档/blog/source/_posts Aliyun:blog --dry-run</span><br></pre></td></tr></table></figure>



<h3 id="v2raya"><a href="#v2raya" class="headerlink" title="v2raya"></a>v2raya</h3><p>archlinuxcn源默认配备，无需代理即可下载</p>
<ul>
<li>安装完毕后 v2rayA 默认不会设置开机自动启动，需要手动启动相关服务，参考命令 <code>systemctl enable --now v2raya.service</code> 。<a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/v2rayA/v2rayA/issues/234">点击V2ray快捷方式无法启动V2ray #234</a></li>
</ul>
<h3 id="conky"><a href="#conky" class="headerlink" title="conky"></a>conky</h3><p>资源显示</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Conky_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">https://wiki.archlinux.org/title/Conky_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)</a></p>
<p>貌似不支持wayland,只能放弃</p>
<h3 id="Terminal-美化"><a href="#Terminal-美化" class="headerlink" title="Terminal 美化"></a>Terminal 美化</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/lxyoucan/article/details/115279860">archlinux安装oh my zsh</a></p>
<h3 id="音频转码"><a href="#音频转码" class="headerlink" title="音频转码"></a>音频转码</h3><p>当然是ffmpeg啦</p>
<p>当时装处理nvidia nvenc手误装了这个，看起来也还不错，带GUI，能用</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S handbrake-nvenc</span><br></pre></td></tr></table></figure>





<h3 id="图片编辑"><a href="#图片编辑" class="headerlink" title="图片编辑"></a>图片编辑</h3><p>可以用Krita和GIMP</p>
<p>感觉GIMP有些操作不太顺，也许到时候换Krita</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S krita</span><br></pre></td></tr></table></figure>



<h3 id="录屏软件"><a href="#录屏软件" class="headerlink" title="录屏软件"></a>录屏软件</h3><p>目前我唯一知道的可行方案是OBS</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S obs-studio</span><br></pre></td></tr></table></figure>

<h4 id="屏幕录制"><a href="#屏幕录制" class="headerlink" title="屏幕录制"></a>屏幕录制</h4><p>从27.0开始OBS才支持wayland屏幕的录制，但还需要安装其他包</p>
<p>xdg-desktop-portal  </p>
<p>xdg-desktop-portal-kde</p>
<p>pipewire</p>
<p>pipewire-media-session</p>
<p>参考： <a target="_blank" rel="noopener external nofollow noreferrer" href="https://bbs.archlinux.org/viewtopic.php?id=270857">How to get OBS Studio fully working with Wayland and KDE!</a></p>
<h4 id="nvenc无法使用的问题"><a href="#nvenc无法使用的问题" class="headerlink" title="nvenc无法使用的问题"></a>nvenc无法使用的问题</h4><p>nvidia-open 开源驱动的锅，截止到2022年7月，仍处在修复状态</p>
<p>相关Issue： <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/NVIDIA/open-gpu-kernel-modules/issues/104">nvenc not available</a></p>
<p>issue里面提到了补丁解决方案，实测有效</p>
<p><img src="https://pic.rmb.bdstatic.com/bjh/024a56331e926f7443158943037e66ac.png" alt="image.png"></p>
<blockquote>
<p>2023年1月更新</p>
<p>相关Issue已经在2022年10月关闭，看样子英伟达不准备处理这个问题</p>
</blockquote>
<p>要注意的是，编码器只能选择H.264而不能是HEVC（至于为什么是这样，我也不知道）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://imgse.com/i/pSng8II"><img src="https://s1.ax1x.com/2023/01/11/pSng8II.png" alt="pSng8II.png"></a></p>
<h3 id="腾讯会议"><a href="#腾讯会议" class="headerlink" title="腾讯会议"></a>腾讯会议</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S wemeet-bin</span><br></pre></td></tr></table></figure>

<p>截止到2022年7月，腾讯会议还不支持Wayland的屏幕共享，需要通过虚拟摄像头来曲线救国</p>
<p>方案1：OBS屏幕采集+虚拟摄像头</p>
<p>方案2：v4l2loopback-dkms摄像头</p>
<p>详情见AUR仓库</p>
<p>或者直接选择桌面时降到X11，这样就能直接屏幕共享</p>
<h3 id="Docker"><a href="#Docker" class="headerlink" title="Docker"></a>Docker</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S docker</span><br></pre></td></tr></table></figure>

<p>添加当前用户到docker用户组（$USER）记得自行替换</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo usermod -aG docker $USER</span><br></pre></td></tr></table></figure>

<p>然后重启就ok了（系统也要重启）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl restart docker</span><br></pre></td></tr></table></figure>

<p>如果不想设置为系统默认启动，每次开启前就要手动输入</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl start docker</span><br></pre></td></tr></table></figure>



<h4 id="docker-desktop"><a href="#docker-desktop" class="headerlink" title="docker-desktop"></a>docker-desktop</h4><p>arch下面也可以用docker-desktop，但是没有意义</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://docs.docker.com/desktop/linux/install/archlinux/">https://docs.docker.com/desktop/linux/install/archlinux/</a></p>
<h4 id="docker-compose"><a href="#docker-compose" class="headerlink" title="docker-compose"></a>docker-compose</h4><p>不用处理什么奇奇怪怪的链接，一键安装，舒服</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S docker-compose</span><br></pre></td></tr></table></figure>

<h4 id="测试"><a href="#测试" class="headerlink" title="测试"></a>测试</h4><p>拖一个AWVS来玩一下</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">docker pull secfa/docker-awvs</span><br><span class="line">docker run -it -d -p 13443:3443 secfa/docker-awvs</span><br><span class="line">Then visit https://YOUR_IP:13443/</span><br><span class="line">//账户密码如下</span><br><span class="line">Username:admin@admin.com</span><br><span class="line">password:Admin123</span><br></pre></td></tr></table></figure>



<h4 id="修改镜像源"><a href="#修改镜像源" class="headerlink" title="修改镜像源"></a>修改镜像源</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo vim /etc/docker/daemon.json</span><br></pre></td></tr></table></figure>

<p>阿里的话可以来这里申请</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors">https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors</a></p>
<p>申请完以后重启即可</p>
<p><strong>要注意，镜像必须是可访问的才行，不然在启动阶段机会报错！！！</strong></p>
<p>使用docker info检验是否安装正确</p>
<h4 id="QEMU虚拟化"><a href="#QEMU虚拟化" class="headerlink" title="QEMU虚拟化"></a>QEMU虚拟化</h4><p>把multiarch&#x2F;qemu-user-static特权提升后，就可以使用其他架构的镜像</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes</span><br></pre></td></tr></table></figure>



<h3 id="DBeaver"><a href="#DBeaver" class="headerlink" title="DBeaver"></a>DBeaver</h3><p>用于连接数据库,位于Arch的Community库</p>
<h3 id="数据库"><a href="#数据库" class="headerlink" title="数据库"></a>数据库</h3><h4 id="PostgresSQL"><a href="#PostgresSQL" class="headerlink" title="PostgresSQL"></a>PostgresSQL</h4><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/PostgreSQL">https://wiki.archlinux.org/title/PostgreSQL</a></p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S postgresql</span><br></pre></td></tr></table></figure>

<p>开启日志</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pg_ctl -D /var/lib/postgres/data -l 日志文件 start</span><br></pre></td></tr></table></figure>

<p>通过守护进程启动</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl start postgresql.service</span><br></pre></td></tr></table></figure>

<p>PostgreSQL Server 的配置文件是 <code>postgresql.conf</code>。此文件在数据库数据目录中，通常在 <code>/var/lib/postgres/data</code>。这个目录也包含其他主要的配置文件，包括 <code>pg_hba.conf</code>。</p>
<p>详细还是要看wiki</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">\list</span><br></pre></td></tr></table></figure>

<p>显示所有数据库</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">createtable xxx</span><br></pre></td></tr></table></figure>

<p>在bash下创建数据库</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">dropdb xxx</span><br></pre></td></tr></table></figure>

<p>在bash下删除数据库</p>
<h4 id="MySQL"><a href="#MySQL" class="headerlink" title="MySQL"></a>MySQL</h4><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/MySQL_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">https://wiki.archlinux.org/title/MySQL_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)</a></p>
<p>一般就是mariadb，甲骨文的版本可以在AUR找到</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S mariadb</span><br></pre></td></tr></table></figure>

<p>初始化</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql</span><br></pre></td></tr></table></figure>

<p>启动</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo systemctl start mariadb</span><br></pre></td></tr></table></figure>

<p>主要，一定要配置密码(为什么这帮造数据库的密码配置这么麻烦)</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo mysql_secure_installation</span><br></pre></td></tr></table></figure>

<p>登入</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mysql -p -u root</span><br></pre></td></tr></table></figure>



<h3 id="聊天工具"><a href="#聊天工具" class="headerlink" title="聊天工具"></a>聊天工具</h3><h4 id="icallinggua"><a href="#icallinggua" class="headerlink" title="icallinggua++"></a>icallinggua++</h4><p>第三方QQ，在官版QQ出来之前一直在用</p>
<p>archlinuxcn收录</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S icalingua++ </span><br></pre></td></tr></table></figure>



<h4 id="官版QQ"><a href="#官版QQ" class="headerlink" title="官版QQ"></a>官版QQ</h4><p>2023年QQ得到了腾讯的原生支持（Electron大法好），Aur已收录</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S linuxqq</span><br></pre></td></tr></table></figure>

<p>沙箱隔离方案：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S linuxqq-nt-bwrap</span><br></pre></td></tr></table></figure>



<h4 id="Wine-qq"><a href="#Wine-qq" class="headerlink" title="Wine-qq"></a>Wine-qq</h4><p>使用deepin-wine-tim（还停留在deepin-wine5）</p>
<p>KDE的话需要额外配置xsettingsd</p>
<p>To solve this problem, you need to install <a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/?name=xsettingsd">xsettingsd</a>, and then set <code>/usr/bin/xsettingsd</code> to autostart, see <a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Autostarting#On_desktop_environment_startup">Autostarting#On desktop environment startup</a>.</p>
<p>This problem will be solved after re-login.</p>
<h4 id="微信"><a href="#微信" class="headerlink" title="微信"></a>微信</h4><p>微信的话就deepin-wine-wechat（已升级到deepin-wine6）</p>
<p>CrossOver也能直接使用微信，微信支持的反倒比qq要好</p>
<h4 id="腾讯会议-1"><a href="#腾讯会议-1" class="headerlink" title="腾讯会议"></a>腾讯会议</h4><p>2022年5月后yay有腾讯会议的包，支持聊天界面，基本能用，还不支持视频本地录制</p>
<p>wine版的腾讯会议目前是用不了的</p>
<h3 id="Andriod虚拟机"><a href="#Andriod虚拟机" class="headerlink" title="Andriod虚拟机"></a>Andriod虚拟机</h3><p>目前linux平台上，除了谷歌虚拟机，其他虚拟机都不能很好的运行ARM架构的程序，我Anbox没有运行起来，但Waydroid运行起来，而且看起来还不错</p>
<h4 id="Waydroid"><a href="#Waydroid" class="headerlink" title="Waydroid"></a>Waydroid</h4><p>如果不愿意编译内核，那就只能用anbox-modules-dkms的组件，然后用DKMS加入到内核</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S anbox-modules-dkms-git</span><br></pre></td></tr></table></figure>

<p>剩下的看ArchWiki即可</p>
<h3 id="二维码生成"><a href="#二维码生成" class="headerlink" title="二维码生成"></a>二维码生成</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S qrencode</span><br></pre></td></tr></table></figure>



<h3 id="OpenVPN"><a href="#OpenVPN" class="headerlink" title="OpenVPN"></a>OpenVPN</h3><p>总是会遇到绕过校园网，连接hack the box这样的问题，这时候就需要这样的东西</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S openvpn NetworkManager-openvpn</span><br></pre></td></tr></table></figure>

<p><img src="https://pic.rmb.bdstatic.com/bjh/bff72cf15ce94091d3928d17531853e4.png" alt="image.png"></p>
<p>安装完以后，可以直接在设置页面使用</p>
<p>如果给的是ovpn文件，则需要手动导入</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo nmcli connection import <span class="built_in">type</span> openvpn file ***.ovpn</span><br></pre></td></tr></table></figure>

<p>导入生成的文件会放在</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/etc/NetworkManager/system-connections</span><br></pre></td></tr></table></figure>

<p>参考</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://mechanus.io/zai-ming-ling-xing-shi-yong-networkmanager-pei-zhi-shi-yong-openvpn/">在命令行使用 NetworkManager 配置使用 OpenVPN</a></p>
<p>如果只是连接但不代理的话，参照网上连接Hack the box的教程</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo openvpn starting_point_Mocus\ \(1\).ovpn</span><br></pre></td></tr></table></figure>

<p>这很nice,不给狗比宿舍网交钱</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nmcli connection modify eno1 ipv6.method &quot;disabled&quot; </span><br></pre></td></tr></table></figure>



<h3 id="vivaldi开启Doh"><a href="#vivaldi开启Doh" class="headerlink" title="vivaldi开启Doh"></a>vivaldi开启Doh</h3><p>需要从Chrome的设置里面进入，vivaldi单独包装的设置没有用</p>
<p>chrome:&#x2F;&#x2F;settings&#x2F;security</p>
<h3 id="Oh-My-Zsh更新失败解决"><a href="#Oh-My-Zsh更新失败解决" class="headerlink" title="Oh My Zsh更新失败解决"></a>Oh My Zsh更新失败解决</h3><p>csdn的git镜像时常发生证书过期问题，这实在忍不了，查找原因发现是镜像站迁移了，需要手动修改远程仓库</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">cd $zsh</span><br><span class="line">git remote set-url origin &#x27;https://gitcode.net/mirrors/ohmyzsh/ohmyzsh.git&#x27;</span><br></pre></td></tr></table></figure>



<h2 id="中文字体配置"><a href="#中文字体配置" class="headerlink" title="中文字体配置"></a>中文字体配置</h2><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Localization/Simplified_Chinese">官方Wiki</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.cnblogs.com/bluestorm/p/6039197.html">Arch Linux中文乱码解决</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S ttf-jetbrains-mono   </span><br></pre></td></tr></table></figure>

<p>比较喜欢jetbrain的字体，编程比较舒服</p>
<p>思源黑体作为系统的默认字体，但是无论哪种字体，Arch下面缩小都不好看</p>
<p>fc-match 查看当前默认字体</p>
<p>fc-list : file 输出所有字体位置</p>
<p>参考这一篇进行字体修改（记得备份fonts.conf）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.ituring.com.cn/article/120762">archlinux 下修改系统默认字体</a></p>
<p>上课要求的Time NewRoman</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S ttf-times-new-roman</span><br></pre></td></tr></table></figure>



<p>emoji</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S noto-fonts-emoji</span><br></pre></td></tr></table></figure>



<h2 id="科学计算"><a href="#科学计算" class="headerlink" title="科学计算"></a>科学计算</h2><p>有些Python需要C包的需要的到系统支持</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">pacman -S python-opencv</span><br><span class="line">pacman -S python-numpy</span><br></pre></td></tr></table></figure>

<p>如果发现包全在外边(外挂硬盘映射到本地就会出现这种情况),用下面这个指令</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">python -m pip install</span><br></pre></td></tr></table></figure>



<h3 id="miniconda"><a href="#miniconda" class="headerlink" title="miniconda"></a>miniconda</h3><p>大的anaconda在archlinuxcn的更新不及时，所以选了miniconda</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S miniconda</span><br></pre></td></tr></table></figure>

<p>上来就遇到conda启动不了的事情属实气人</p>
<p>给当前zsh添加变量miniconda环境变量</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">vim  ~/.zshrc </span><br><span class="line">source /opt/miniconda3/etc/profile.d/conda.sh</span><br></pre></td></tr></table></figure>

<p>虚拟环境记得要调整地方，不然Pycharm会卡权限</p>
<p>参考北外源的操作</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://mirrors.bfsu.edu.cn/help/anaconda/">https://mirrors.bfsu.edu.cn/help/anaconda/</a></p>
<h2 id="软件开发"><a href="#软件开发" class="headerlink" title="软件开发"></a>软件开发</h2><h3 id="Python"><a href="#Python" class="headerlink" title="Python"></a>Python</h3><p>在AUR下载旧版本的Python，Pacman的Python默认是最新版本</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Python_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">Python (简体中文)</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Python_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)/Virtual_environment_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">Python (简体中文)&#x2F;Virtual environment (简体中文)</a></p>
<p>根据路径找到解释器就能创建Python3.6的virualenv</p>
<p>还需要手动安装pip，windows转过来还真不习惯</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S python-pip</span><br></pre></td></tr></table></figure>

<h3 id="Nodejs"><a href="#Nodejs" class="headerlink" title="Nodejs"></a>Nodejs</h3><p>NodeJS的版本更新和新特性太多了，必须装nvm控制版本</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">yay -S nvm </span><br><span class="line"><span class="built_in">echo</span> <span class="string">&#x27;source /usr/share/nvm/init-nvm.sh&#x27;</span> &gt;&gt; ~/.zshrc</span><br></pre></td></tr></table></figure>

<p>默认用LTS版</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nvm install --lts</span><br></pre></td></tr></table></figure>

<p>换cnpm</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g cnpm --registry=https://registry.npmmirror.com</span><br></pre></td></tr></table></figure>

<h4 id="解决在nvm下面vscode找不到node的情况"><a href="#解决在nvm下面vscode找不到node的情况" class="headerlink" title="解决在nvm下面vscode找不到node的情况"></a>解决在nvm下面vscode找不到node的情况</h4><p>一个治标不治本的方案：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://jiangmq.blog.csdn.net/article/details/125413747">macbook：vscode 插件Code Runner报错：&#x2F;bin&#x2F;sh: node: command not found</a></p>
<p>后面找到了问题根源，Vscode Code Runner 默认是从&#x2F;usr&#x2F;bin&#x2F;node里去找node,用了nvm铁定找不到，必须创建链接</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo ln -s /home/mocus/.nvm/versions/node/v16.15.1/bin/node /usr/bin/node</span><br></pre></td></tr></table></figure>

<p>这样的话，nvm切换环境的时候记得要换掉</p>
<h3 id="Andriod-Studio"><a href="#Andriod-Studio" class="headerlink" title="Andriod Studio"></a>Andriod Studio</h3><p>archlinuxcn源配了这个</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S android-studio</span><br></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://developer.android.com/studio/run/emulator-acceleration?utm_source=android-studio#vm-linux">配置kvm硬件加速</a></p>
<p>Gradle有时候会把socks代理变成http，这时候就要这么解决</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/qq_41624557/article/details/123848212">新建项目下Gradle sync报错Plugin was not found in any of the following sources</a></p>
<h3 id="Go"><a href="#Go" class="headerlink" title="Go"></a>Go</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S go</span><br></pre></td></tr></table></figure>

<p>配置国内代理</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">go <span class="built_in">env</span> -w GOPROXY=https://goproxy.cn,direct</span><br></pre></td></tr></table></figure>

<h3 id="Git"><a href="#Git" class="headerlink" title="Git"></a>Git</h3><p>一般需要配置代理，不然Github会非常慢</p>
<p>一般是存成bash命令，随时可以切换</p>
<p>开启：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git config --global http.https://github.com.proxy socks5://127.0.0.1:20171</span><br></pre></td></tr></table></figure>

<p>关闭：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">git config --global --<span class="built_in">unset</span> http.proxy </span><br><span class="line">git config --global --<span class="built_in">unset</span> https.proxy</span><br></pre></td></tr></table></figure>



<h3 id="Java"><a href="#Java" class="headerlink" title="Java"></a>Java</h3><h4 id="Tomcat"><a href="#Tomcat" class="headerlink" title="Tomcat"></a>Tomcat</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S tomcat9</span><br></pre></td></tr></table></figure>

<p>记得添加用户组权限（用户名和服务记得替换）</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">gpasswd -a mocus tomcat9</span><br></pre></td></tr></table></figure>

<p>配置IDEA的Tomcat Home时填入：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">/usr/share/tomcat9</span><br></pre></td></tr></table></figure>



<p>开启：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl start tomcat9</span><br></pre></td></tr></table></figure>

<p>注意，使用IDEA开发的时候，不需要启动，<strong>环境配置好直接启动即可</strong></p>
<h3 id="PHP"><a href="#PHP" class="headerlink" title="PHP"></a>PHP</h3><p>这里选了php74，只能在aur里面找到，从源码层面编译，安装速度很慢</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S php74 php74-cli php74-fpm</span><br></pre></td></tr></table></figure>

<p>也可以直接从官方仓库拉取，但默认只提供当前最新版本</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S php php-fpm</span><br></pre></td></tr></table></figure>

<p>如果不想要安装Nginx，Apache，可以用PHP自带的服务器临时顶替</p>
<p>启动当前目录下的服务</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">php -S 0.0.0.0:8888 -t .</span><br></pre></td></tr></table></figure>



<h2 id="Windows兼容层"><a href="#Windows兼容层" class="headerlink" title="Windows兼容层"></a>Windows兼容层</h2><p><strong>能不用就不用，因为这会显得你很蠢，但事实就是国产电脑软件还是Windows多</strong></p>
<p><strong>秉持实用性原则，还是准备了这一章的内容，如果运行不畅，那还是老实上虚拟机比较好</strong></p>
<h3 id="wine"><a href="#wine" class="headerlink" title="wine"></a>wine</h3><p>wine是wine is not emulator的递归缩写</p>
<p>在~&#x2F;.wine文件夹，会有一个名为drive_c的文件夹。该文件夹里面有三个熟悉的子文件夹：</p>
<p>•Program Files</p>
<p>•users</p>
<p>•windows.</p>
<h3 id="proton"><a href="#proton" class="headerlink" title="proton"></a>proton</h3><p>Valve开发的用来打游戏的，有人用这个开发出了能运行其他软件的插件</p>
<p>使用ptrotrencaller运行你想要的任意软件</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/caverym/Proton-Caller/">https://github.com/caverym/Proton-Caller/</a></p>
<h3 id="CrossOver"><a href="#CrossOver" class="headerlink" title="CrossOver"></a>CrossOver</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/qq_35503971/article/details/107296647">解决CrossOver中文乱码问题</a></p>
<p>买了司马的79元CrossOver 21（后来看V2EX说官网经常有低价车，准备有机会上）</p>
<p>奇技淫巧</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://ywnz.com/linuxjc/6144.html">在Linux系统中设置CrossOver无限试用15天的办法</a></p>
<p>crossover的时间验证信息写在每一个winebottle容器中，相互是完全隔离（不是写在全局配置中）。即使一个容器过期了，依然可以创建新的容器，并重新计算试用期，所以不需要重装软件本身。</p>
<p>即使重装程序，已经过期的容器依旧不能用，不过可以删除该容器，或者删除容器下的.eval文件</p>
<p>需要把multilib的注释去掉（qq那些程序还运行在32位）</p>
<h4 id="相关资源"><a href="#相关资源" class="headerlink" title="相关资源"></a>相关资源</h4><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://haxsoft.com/crossover-mac-linux-crack-2021/#CrossOver_2110_MacLinux_Crack_Key_Free_Download">https://haxsoft.com/crossover-mac-linux-crack-2021/#CrossOver_2110_MacLinux_Crack_Key_Free_Download</a></p>
<p>密码1234</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://spsoftwares.com/crossover-key/">https://spsoftwares.com/crossover-key/</a></p>
<p>密码123</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://miraclecrack.com/crossover-mac-crack/">https://miraclecrack.com/crossover-mac-crack/</a></p>
<p>密码1234</p>
<h4 id="官方FAQ"><a href="#官方FAQ" class="headerlink" title="官方FAQ"></a>官方FAQ</h4><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.codeweavers.com/support/wiki/linux">Linux Knowledge Base | Knowledge Base | CodeWeavers</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.crossoverchina.com/faq/single-exe.html">CrossOver 如何运行单个 Windows.exe 文件</a></p>
<h2 id="网络安全软件安装"><a href="#网络安全软件安装" class="headerlink" title="网络安全软件安装"></a>网络安全软件安装</h2><h3 id="内网渗透"><a href="#内网渗透" class="headerlink" title="内网渗透"></a>内网渗透</h3><h4 id="Metasploit"><a href="#Metasploit" class="headerlink" title="Metasploit"></a>Metasploit</h4><p>BlackArch源提供了metasploit的包</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S metasploit</span><br><span class="line">sudo msfconsole</span><br></pre></td></tr></table></figure>

<h4 id="nmap"><a href="#nmap" class="headerlink" title="nmap"></a>nmap</h4><p>好用的端口扫描,安装了nmap也顺带安装了ncat</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S nmap</span><br></pre></td></tr></table></figure>



<h4 id="Netdiscover"><a href="#Netdiscover" class="headerlink" title="Netdiscover"></a>Netdiscover</h4><p>内网服务扫描</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S netdiscover</span><br></pre></td></tr></table></figure>

<p>使用指令</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo netdiscover -i wlp4s0 -r 10.101.153.0/24</span><br></pre></td></tr></table></figure>



<h4 id="fscan"><a href="#fscan" class="headerlink" title="fscan"></a>fscan</h4><p>blackarch源</p>
<p>支持主机存活探测、端口扫描、常见服务的爆破、ms17010、redis批量写公钥、计划任务反弹shell、读取win网卡信息、web指纹识别、web漏洞扫描、netbios探测、域控识别等功能</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S fscan</span><br></pre></td></tr></table></figure>



<h4 id="evil-winrm"><a href="#evil-winrm" class="headerlink" title="evil-winrm"></a>evil-winrm</h4><p>用于登陆winRM的，blackarch版本的死活用不了，只能求助aur</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S ruby-evil-winrm</span><br></pre></td></tr></table></figure>



<h4 id="responder"><a href="#responder" class="headerlink" title="responder"></a>responder</h4><p>用来接获NTLM hash的工具，做HTB的时候用到了</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S responder</span><br></pre></td></tr></table></figure>



<h3 id="linux-exploit-suggester"><a href="#linux-exploit-suggester" class="headerlink" title="linux-exploit-suggester"></a>linux-exploit-suggester</h3><p>Linux提权工具箱，在BlackArch源</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S linux-exploit-suggester</span><br></pre></td></tr></table></figure>



<h3 id="Misc-forensic"><a href="#Misc-forensic" class="headerlink" title="Misc+forensic"></a>Misc+forensic</h3><p>kali有的Arch绝大部分都会有</p>
<h4 id="foremost和binwalk"><a href="#foremost和binwalk" class="headerlink" title="foremost和binwalk"></a>foremost和binwalk</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S foremost</span><br><span class="line">sudo pacman -S binwalk</span><br></pre></td></tr></table></figure>

<h4 id="volatility3"><a href="#volatility3" class="headerlink" title="volatility3"></a>volatility3</h4><p>community包里就有这个</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S volatility3</span><br></pre></td></tr></table></figure>

<p>使用的时候输入vol</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">➜  ~ vol        </span><br><span class="line">Volatility 3 Framework 2.0.1</span><br><span class="line">usage: volatility [-h] [-c CONFIG] [--parallelism [&#123;processes,threads,off&#125;]] [-e EXTEND] [-p PLUGIN_DIRS] [-s SYMBOL_DIRS] [-v] [-l LOG]</span><br><span class="line">                  [-o OUTPUT_DIR] [-q] [-r RENDERER] [-f FILE] [--write-config] [--clear-cache] [--cache-path CACHE_PATH] [--offline]</span><br><span class="line">                  [--single-location SINGLE_LOCATION] [--stackers [STACKERS ...]] [--single-swap-locations [SINGLE_SWAP_LOCATIONS ...]]</span><br><span class="line">                  plugin ...</span><br><span class="line">volatility: error: Please select a plugin to run</span><br></pre></td></tr></table></figure>

<p><strong>请注意，想要使用还需要自行去Github找对应系统的symbols，解压到特定目录才能使用！！！</strong></p>
<h4 id="16进制编辑器"><a href="#16进制编辑器" class="headerlink" title="16进制编辑器"></a>16进制编辑器</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S okteta</span><br></pre></td></tr></table></figure>

<p>感觉不如010editor，但也没办法就是了</p>
<p>吾爱上面有010editor的破解，但那个缩放DPI真的要眼瞎</p>
<h4 id="crunch"><a href="#crunch" class="headerlink" title="crunch"></a>crunch</h4><p>快速生成爆破字典</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S crunch</span><br></pre></td></tr></table></figure>

<p>使用教程：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/qq_38319566/article/details/107737119">crunch(kali密码生成工具)—-介绍与使用</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.bbskali.cn/3283.html">crunch详细指南</a></p>
<h4 id="john"><a href="#john" class="headerlink" title="john"></a>john</h4><p>密码爆破工具</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.cnblogs.com/HelloCTF/p/13346125.html">Kali中John的使用方法</a></p>
<p>使用zip2john爆破zip</p>
<p>有一个GUI版本名称叫做johnny，停留在QT4的版本</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S johnny</span><br></pre></td></tr></table></figure>
<p>常见用法</p>
<table>
<thead>
<tr>
<th>–single</th>
<th>single crack模式，使用配置文件中的规则进行破解</th>
</tr>
</thead>
<tbody><tr>
<td>–wordlist&#x3D;FILE–stdin</td>
<td>字典模式，从 FILE或标准输入中读取词汇</td>
</tr>
<tr>
<td>–rules</td>
<td>打开字典模式的词汇表切分规则</td>
</tr>
<tr>
<td>–incremental[&#x3D;MODE]</td>
<td>使用增量模式</td>
</tr>
<tr>
<td>–external&#x3D;MODE</td>
<td>打开外部模式或单词过滤，使用 [List.External:MODE]节中定义的外部函数</td>
</tr>
<tr>
<td>–stdout[&#x3D;LENGTH]</td>
<td>不进行破解，仅仅把生成的、要测试是否为口令的词汇输出到标准输出上</td>
</tr>
<tr>
<td>–restore[&#x3D;NAME]</td>
<td>恢复被中断的破解过程，从指定文件或默认为 $JOHN&#x2F;john.rec的文件中读取破解过程的状态信息</td>
</tr>
<tr>
<td>–session&#x3D;NAME</td>
<td>将新的破解会话命名为 NAME，该选项用于会话中断恢复和同时运行多个破解实例的情况</td>
</tr>
<tr>
<td>–status[&#x3D;NAME]</td>
<td>显示会话状态</td>
</tr>
<tr>
<td>–make-charset&#x3D;FILE</td>
<td>生成一个字符集文件，覆盖 FILE文件，用于增量模式</td>
</tr>
<tr>
<td>–show</td>
<td>显示已破解口令</td>
</tr>
<tr>
<td>–test</td>
<td>进行基准测试</td>
</tr>
<tr>
<td>–users&#x3D;[-]LOGIN</td>
<td>UID[,…]</td>
</tr>
<tr>
<td>–groups&#x3D;[-]GID[,…]</td>
<td>对指定用户组的账户进行破解，减号表示反向操作，说明对列出组之外的账户进行破解。</td>
</tr>
<tr>
<td>–shells&#x3D;[-]SHELL[,…]</td>
<td>对使用指定 shell的账户进行操作，减号表示反向操作</td>
</tr>
<tr>
<td>–salts&#x3D;[-]COUNT</td>
<td>至少对 COUNT口令加载加盐，减号表示反向操作</td>
</tr>
<tr>
<td>–format&#x3D;NAME</td>
<td>指定密文格式名称，为 DES&#x2F;BSDI&#x2F;MD5&#x2F;BF&#x2F;AFS&#x2F;LM之一</td>
</tr>
<tr>
<td>–save-memory&#x3D;LEVEL</td>
<td>设置内存节省模式，当内存不多时选用这个选项。 LEVEL取值在 1~3之间</td>
</tr>
</tbody></table>
<h4 id="hashcat"><a href="#hashcat" class="headerlink" title="hashcat"></a>hashcat</h4><p>md5离线爆破，没有意义，但还是要装</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S hashcat </span><br></pre></td></tr></table></figure>

<p>爆破md5的指令：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hashcat –m 0 2-key.txt </span><br></pre></td></tr></table></figure>

<p>建议是要配上字典使用</p>
<h4 id="rarcrack"><a href="#rarcrack" class="headerlink" title="rarcrack"></a>rarcrack</h4><p>使用教程</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/433192259">https://zhuanlan.zhihu.com/p/433192259</a></p>
<h4 id="hashseep"><a href="#hashseep" class="headerlink" title="hashseep"></a>hashseep</h4><p>文件完整性校验,出md5和sha256</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S hashdeep</span><br></pre></td></tr></table></figure>

<h4 id="wireshark"><a href="#wireshark" class="headerlink" title="wireshark"></a>wireshark</h4><p>抓包必备</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S wireshark-qt</span><br></pre></td></tr></table></figure>

<p>参照wiki添加到用户组即可使用</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/title/Wireshark_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">https://wiki.archlinux.org/title/Wireshark_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)</a></p>
<p>tshark是wireshark的命令行形式，会跟随wireshark一起被安装</p>
<h4 id="stegdetect"><a href="#stegdetect" class="headerlink" title="stegdetect"></a>stegdetect</h4><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S stegdetect</span><br></pre></td></tr></table></figure>

<p>Neils Provos的开发通过统计分析技术评估JPEG文件的DCT频率系数的隐写工具<a href="https://link.juejin.cn/?target=https://github.com/abeluck/stegdetect" rel="external nofollow noreferrer">Stegdetect</a>，它可以检测到通过JSteg、JPHide、OutGuess、Invisible Secrets、F5、appendX和Camouflage等这些隐写工具隐藏的信息，并且还具有基于字典暴力破解密码方法提取通过Jphide、outguess和jsteg-shell方式嵌入的隐藏信息</p>
<p>我没怎么用过，做隐写时看到就装上了</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/weixin_43921596/article/details/86654754">图片隐写——stegdetect</a></p>
<h4 id="zip修复"><a href="#zip修复" class="headerlink" title="zip修复"></a>zip修复</h4><p>缺一个头部或尾部的情况下会自动修复</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">zip -FF 2.zip --out 22.zip</span><br></pre></td></tr></table></figure>

<p>每到这个时候，就会怀念万能的WinRAR</p>
<h3 id="Web安全"><a href="#Web安全" class="headerlink" title="Web安全"></a>Web安全</h3><h4 id="Burpsuite和Sqlmap"><a href="#Burpsuite和Sqlmap" class="headerlink" title="Burpsuite和Sqlmap"></a>Burpsuite和Sqlmap</h4><p>Burpsuite社区版对我这种菜鸡来说够用了（能装插件就行）</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S burpsuite</span><br><span class="line">sudo pacman -S sqlmap</span><br></pre></td></tr></table></figure>

<h4 id="whatweb"><a href="#whatweb" class="headerlink" title="whatweb"></a>whatweb</h4><p>网络指纹识别</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S whatweb</span><br></pre></td></tr></table></figure>



<h4 id="长亭xray"><a href="#长亭xray" class="headerlink" title="长亭xray"></a>长亭xray</h4><p>证书安装无法按照官方的做法</p>
<p>将 &#x2F;usr&#x2F;local&#x2F;share&#x2F;ca-certificates&#x2F;*.crt 改为 &#x2F;etc&#x2F;ca-certificates&#x2F;trust-source&#x2F;anchors&#x2F; </p>
<p>运行 <strong>trust extract-compat</strong> 后完成认证</p>
<h4 id="POCsuite"><a href="#POCsuite" class="headerlink" title="POCsuite"></a>POCsuite</h4><p>知道创宇POCsuite3,已录入AUR仓库</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S pocsuite3</span><br></pre></td></tr></table></figure>



<h4 id="MitmProxy"><a href="#MitmProxy" class="headerlink" title="MitmProxy"></a>MitmProxy</h4><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S mitmproxy</span><br></pre></td></tr></table></figure>

<p>可以轻松定制中间攻击脚本</p>
<p>教程：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/371209542">mitmproxy教程</a></p>
<h3 id="逆向"><a href="#逆向" class="headerlink" title="逆向"></a>逆向</h3><h4 id="jadx"><a href="#jadx" class="headerlink" title="jadx"></a>jadx</h4><p>安卓解包</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S jadx</span><br></pre></td></tr></table></figure>

<h4 id="jd-gui"><a href="#jd-gui" class="headerlink" title="jd-gui"></a>jd-gui</h4><p>安卓class文件反汇编</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S jd-gui</span><br></pre></td></tr></table></figure>



<h4 id="drozer"><a href="#drozer" class="headerlink" title="drozer"></a>drozer</h4><p>一款面向 Android 的综合安全评估和攻击框架，BlackArch提供</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S drozer</span><br></pre></td></tr></table></figure>



<h4 id="Detect-it-easy（DIE）"><a href="#Detect-it-easy（DIE）" class="headerlink" title="Detect it easy（DIE）"></a>Detect it easy（DIE）</h4><p>Github开源的，先用appimage顶上</p>
<p>查明软件有无加壳</p>
<h3 id="字典"><a href="#字典" class="headerlink" title="字典"></a>字典</h3><h4 id="rockyou"><a href="#rockyou" class="headerlink" title="rockyou"></a>rockyou</h4><p>rockyou字典，很多靶场都能跑出来</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yay -S rockyou</span><br></pre></td></tr></table></figure>

<h4 id="seclist"><a href="#seclist" class="headerlink" title="seclist"></a>seclist</h4><p>必备经典字典，用过kali的基本都不错过这个</p>
<p>需要BlackArch源</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">pacman -S seclists</span><br></pre></td></tr></table></figure>



<h2 id="硬件相关"><a href="#硬件相关" class="headerlink" title="硬件相关"></a>硬件相关</h2><h3 id="触摸板手势"><a href="#触摸板手势" class="headerlink" title="触摸板手势"></a>触摸板手势</h3><p>最后并没有用上</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://ericclose.github.io/libinput-gestures-on-Arch-Linux-with-KDE.html">https://ericclose.github.io/libinput-gestures-on-Arch-Linux-with-KDE.html</a></p>
<h3 id="关掉关机beep"><a href="#关掉关机beep" class="headerlink" title="关掉关机beep"></a>关掉关机beep</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.csdn.net/u012320459/article/details/46431183">Arch下永久去掉响铃—Beep(通过添加内核模块配置文件的方法）</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://wiki.archlinux.org/index.php/Kernel_modules_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)">Kernel module (简体中文)</a></p>
<h3 id="英伟达开源驱动安装"><a href="#英伟达开源驱动安装" class="headerlink" title="英伟达开源驱动安装"></a>英伟达开源驱动安装</h3><p>截止到2022年7月，还停留在a测，但是可以通过pacman直接安装，这点上很大程度上比debian列方便</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/testing/x86_64/nvidia-open/">https://archlinux.org/packages/testing/x86_64/nvidia-open/</a></p>
<p>For the <a target="_blank" rel="noopener external nofollow noreferrer" href="https://nouveau.freedesktop.org/CodeNames.html#NV160">Turing (NV160&#x2F;TU<em>XXX</em>)</a> series or newer the <a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/?name=nvidia-open">nvidia-open</a> package may be installed for open source kernel modules on the <a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/?name=linux">linux</a> kernel (On other kernels <a target="_blank" rel="noopener external nofollow noreferrer" href="https://archlinux.org/packages/?name=nvidia-open-dkms">nvidia-open-dkms</a> must be used).</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blogs.gnome.org/uraeus/2022/05/11/why-is-the-open-source-driver-release-from-nvidia-so-important-for-linux/">https://blogs.gnome.org/uraeus/2022/05/11/why-is-the-open-source-driver-release-from-nvidia-so-important-for-linux/</a></p>
<p>装完以后还需要一个nvidia-settings验证到底有没有驱动成功</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S nvidia-settings</span><br></pre></td></tr></table></figure>

<p>感觉这个耗电量应该是没法控制了</p>
<p>查询默认使用的显卡：</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">glxinfo | grep &quot;OpenGL renderer&quot;</span><br></pre></td></tr></table></figure>

<p>来张图证明能用（没想到最早用上的竟然是Wine版微信）</p>
<p><img src="https://pic.rmb.bdstatic.com/bjh/52fb506106719668979ed86a2b1eac69.png" alt="image.png"></p>
<p>相关新闻：</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.linuxmi.com/linux-nvidia-open-sources-gpu-driver.html">https://www.linuxmi.com/linux-nvidia-open-sources-gpu-driver.html</a></p>
<h3 id="查看显卡信息"><a href="#查看显卡信息" class="headerlink" title="查看显卡信息"></a>查看显卡信息</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">lspci -k | grep -A 2 -E &quot;(VGA|3D)&quot;</span><br><span class="line">lspci | grep -i vga</span><br></pre></td></tr></table></figure>

<p>nvdia显卡工作情况</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">nvidia-smi</span><br></pre></td></tr></table></figure>

<h2 id="一些好玩的东西"><a href="#一些好玩的东西" class="headerlink" title="一些好玩的东西"></a>一些好玩的东西</h2><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://blog.bbskali.cn/3749.html">Linux中那些没用但好玩的命令</a></p>
<p>cmatrix</p>
<p>应该很多地方介绍过了，黑客帝国的效果</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S cmatrix</span><br></pre></td></tr></table></figure>

<p>figlet</p>
<p>将文字变为控制台符号</p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">sudo pacman -S cmatrix</span><br></pre></td></tr></table></figure>



<h2 id="已知问题"><a href="#已知问题" class="headerlink" title="已知问题"></a>已知问题</h2><p>睡眠后唤醒失败</p>
<h2 id="Linux知识补充"><a href="#Linux知识补充" class="headerlink" title="Linux知识补充"></a>Linux知识补充</h2><h3 id="关于内核头的知识"><a href="#关于内核头的知识" class="headerlink" title="关于内核头的知识"></a>关于内核头的知识</h3><p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.cnblogs.com/dyllove98/archive/2013/07/20/3202824.html">https://www.cnblogs.com/dyllove98/archive/2013/07/20/3202824.html</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.zhihu.com/question/21319166">https://www.zhihu.com/question/21319166</a></p>
<p>概述：在进行有关系统软件的安装的时候（编译一个新的驱动，或者安装一个系统级别的测试工具，例如systemtap），经常需要重新编译内核，相应的问题往往与内核头文件有关。那么，什么是内核头文件，为什么需要更新内核头文件？</p>
<p>简单说，就好像“你买手机充电线要先看看自己的手机充电口是micro-usb、usb-c还是别的什么，买错了就没法用”一样，无论我们写的程序要调用内核提供的什么功能、还是我们本身要开发内核模块，首先就得保证我们写的程序能够和内核的数据结构以及函数接口匹配，对吧？</p>
<p>kernel headers就是Linux内核的接口规格书</p>
<h3 id="分区知识"><a href="#分区知识" class="headerlink" title="分区知识"></a>分区知识</h3><p>主要遵照Linux FHS（Filesystem Hierarchy Standard）。如果是NixOS的话有另外一套方案。</p>
<table>
<thead>
<tr>
<th>分区名称</th>
<th>作用</th>
</tr>
</thead>
<tbody><tr>
<td>&#x2F;</td>
<td>根分区目录，其他所有分区目录都位于其下。</td>
</tr>
<tr>
<td>&#x2F;boot&#x2F;</td>
<td>存放系统启动时所需的各种文件。</td>
</tr>
<tr>
<td>&#x2F;root&#x2F;</td>
<td>系统管理员 root 用户的主目录。</td>
</tr>
<tr>
<td>&#x2F;home&#x2F;</td>
<td>普通用户的主目录。</td>
</tr>
<tr>
<td>&#x2F;etc&#x2F;</td>
<td>配置文件的目录。平常通过系统包管理命令安装的各种软件，它们的配置文件默认都在此目录下。</td>
</tr>
<tr>
<td>&#x2F;bin&#x2F;</td>
<td>系统核心命令的存放目录。</td>
</tr>
<tr>
<td>&#x2F;usr&#x2F;</td>
<td>系统默认软件的安装目录和共享资源目录。通过系统包管理命令安装的软件，大多都位于这里。</td>
</tr>
<tr>
<td>&#x2F;opt&#x2F;</td>
<td>用户软件的安装目录。</td>
</tr>
<tr>
<td>&#x2F;var&#x2F;</td>
<td>存放软件运行时生成的一些文件，比如日志，运行中的进程 ID 文件等。</td>
</tr>
<tr>
<td>&#x2F;tmp&#x2F;</td>
<td>系统临时文件的目录。每次系统关机时，此目录中的所有文件都会清除。</td>
</tr>
<tr>
<td>Swap</td>
<td>这不是目录，是一个特殊的 Linux 分区，通过文件系统的方式模拟物理内存，以应对物理内存使用时的不足。</td>
</tr>
</tbody></table>
<p>可以单独新建一个分区，并挂载到 <code>/home</code> 目录。如果可以的话，添加一个新的硬盘专门挂载到 <code>/home</code> 也没问题</p>
<h3 id="Linux苦难哲学"><a href="#Linux苦难哲学" class="headerlink" title="Linux苦难哲学"></a>Linux苦难哲学</h3><p>有关</p>
<p>王垠（作品《完全用 Linux 工作》的作者）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/453087710">Linux 与苦难哲学</a>（FreeBSD的人写的）</p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://www.linuxadictos.com/zh-CN/%E5%85%8D%E8%B4%B9%E7%9A%84-gnu-linux-%E5%86%85%E6%A0%B8.html">GNU Linux-Libre 内核 5.16 已经发布</a></p>
<p><a target="_blank" rel="noopener external nofollow noreferrer" href="https://zhuanlan.zhihu.com/p/471473368">Linux 败局已定——驳 FreeBSD 大败局</a> （还是FreeBSD的人写的）</p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://www.mocusez.site">MocusEZ</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://www.mocusez.site/posts/b081.html">https://www.mocusez.site/posts/b081.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc/4.0" rel="external nofollow noreferrer" target="_blank">CC BY-NC 4.0</a> 许可协议。转载请注明来自 <a href="https://www.mocusez.site" target="_blank">Mox的笔记库</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"></div><div class="post_share"><div class="social-share" data-image="https://pic.rmb.bdstatic.com/bjh/96117c842daeb305932d8e1ee65ac796.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/posts/5de9.html"><img class="prev-cover" src="https://pic.rmb.bdstatic.com/bjh/e5b11171970586d1877387e695d7ff6c.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">2022CISCN初赛-ez_usb-复盘WriteUp</div></div></a></div><div class="next-post pull-right"><a href="/posts/c093.html"><img class="next-cover" src="https://pic.rmb.bdstatic.com/bjh/bf369179e3f27cb4d01dafb597122ae1.png" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">Django事务使用</div></div></a></div></nav><hr/><div id="post-comment"><div class="comment-head"><div class="comment-headline"><i class="fas fa-comments fa-fw"></i><span> 评论</span></div></div><div class="comment-wrap"><div><div id="waline-wrap"></div></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/img/head.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">MocusEZ</div><div class="author-info__description">探索未曾设想的道路</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">61</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">0</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">8</div></a></div><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/mocusez" rel="external nofollow noreferrer" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:285918468@qq.com" rel="external nofollow noreferrer" target="_blank" title="Email"><i class="fas fa-envelope"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="RSS"><i class="fas fa-rss"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">迎接新的明天</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Arch-Linux%E8%BF%81%E7%A7%BB%E8%AE%A1%E5%88%92"><span class="toc-number">1.</span> <span class="toc-text">Arch Linux迁移计划</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#%E9%A3%9F%E7%94%A8%E6%8C%87%E5%8C%97"><span class="toc-number">1.1.</span> <span class="toc-text">食用指北</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%89%8D%E8%A8%80"><span class="toc-number">1.2.</span> <span class="toc-text">前言</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%BC%80%E5%A7%8B"><span class="toc-number">1.3.</span> <span class="toc-text">开始</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Linux%E9%80%89%E5%9E%8B"><span class="toc-number">1.4.</span> <span class="toc-text">Linux选型</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Arch"><span class="toc-number">1.4.1.</span> <span class="toc-text">Arch</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%99%9A%E6%8B%9F%E6%9C%BA%E5%86%85%E4%BD%BF%E7%94%A8Arch%E7%9A%84%E9%85%8D%E7%BD%AE"><span class="toc-number">1.4.1.1.</span> <span class="toc-text">虚拟机内使用Arch的配置</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#EndevourOS"><span class="toc-number">1.4.2.</span> <span class="toc-text">EndevourOS</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Ubuntu"><span class="toc-number">1.4.3.</span> <span class="toc-text">Ubuntu</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Pop-os"><span class="toc-number">1.4.4.</span> <span class="toc-text">Pop_os</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Kali"><span class="toc-number">1.4.5.</span> <span class="toc-text">Kali</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Blackarch"><span class="toc-number">1.4.6.</span> <span class="toc-text">Blackarch</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%A4%A7%E4%BD%AC%E6%95%99%E7%A8%8B"><span class="toc-number">1.5.</span> <span class="toc-text">大佬教程</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%99%9A%E6%8B%9F%E6%9C%BA%E9%85%8D%E7%BD%AE"><span class="toc-number">1.6.</span> <span class="toc-text">虚拟机配置</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#KVM"><span class="toc-number">1.6.1.</span> <span class="toc-text">KVM</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#win7%E7%89%B9%E6%AE%8A%E5%87%86%E5%A4%87"><span class="toc-number">1.6.1.1.</span> <span class="toc-text">win7特殊准备</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Vmware"><span class="toc-number">1.6.2.</span> <span class="toc-text">Vmware</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#VirtualBox"><span class="toc-number">1.6.3.</span> <span class="toc-text">VirtualBox</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#QEMU"><span class="toc-number">1.6.4.</span> <span class="toc-text">QEMU</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85%E4%B8%8E%E5%90%8E%E7%BB%AD%E7%BB%B4%E6%8A%A4"><span class="toc-number">1.7.</span> <span class="toc-text">系统安装与后续维护</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E6%95%99%E7%A8%8B"><span class="toc-number">1.7.1.</span> <span class="toc-text">安装教程</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8F%8C%E7%B3%BB%E7%BB%9F%E5%AE%89%E8%A3%85"><span class="toc-number">1.7.2.</span> <span class="toc-text">双系统安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#KDE%E5%AE%89%E8%A3%85"><span class="toc-number">1.7.3.</span> <span class="toc-text">KDE安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B3%E6%9C%BA%E6%85%A2"><span class="toc-number">1.7.4.</span> <span class="toc-text">关机慢</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A0%A1%E5%9B%AD%E7%BD%91%E4%B8%8B%E9%9D%A2%E5%AE%89%E8%A3%85"><span class="toc-number">1.7.5.</span> <span class="toc-text">校园网下面安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AEU%E7%9B%98%E9%95%9C%E5%83%8F"><span class="toc-number">1.7.6.</span> <span class="toc-text">配置U盘镜像</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%BF%90%E8%A1%8C%E5%88%B0tty3"><span class="toc-number">1.7.7.</span> <span class="toc-text">运行到tty3</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#systemd-boot"><span class="toc-number">1.7.8.</span> <span class="toc-text">systemd-boot</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#KDE%E7%B3%BB%E7%BB%9F%E5%88%86%E5%8C%BA"><span class="toc-number">1.7.9.</span> <span class="toc-text">KDE系统分区</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%B2%A1%E6%9C%89ifconfig%E4%B8%8Enslookup"><span class="toc-number">1.7.10.</span> <span class="toc-text">没有ifconfig与nslookup</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#systemctl"><span class="toc-number">1.7.11.</span> <span class="toc-text">systemctl</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Nvidia%E5%BC%80%E6%BA%90%E9%A9%B1%E5%8A%A8%E7%AE%A1%E7%90%86"><span class="toc-number">1.7.12.</span> <span class="toc-text">Nvidia开源驱动管理</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%A7%A3%E5%86%B3%E8%93%9D%E7%89%99%E8%80%B3%E6%9C%BA%E9%BA%A6%E5%85%8B%E9%A3%8E%E6%B2%A1%E6%B3%95%E7%94%A8%E7%9A%84%E9%97%AE%E9%A2%98"><span class="toc-number">1.7.13.</span> <span class="toc-text">解决蓝牙耳机麦克风没法用的问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#WARNING-REMOTE-HOST-IDENTIFICATION-HAS-CHANGED"><span class="toc-number">1.7.14.</span> <span class="toc-text">WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F%E9%85%8D%E7%BD%AE"><span class="toc-number">1.7.15.</span> <span class="toc-text">环境变量配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%A4%87%E4%BB%BD"><span class="toc-number">1.7.16.</span> <span class="toc-text">备份</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%96%87%E4%BB%B6%E6%8F%8F%E8%BF%B0%E7%AC%A6"><span class="toc-number">1.7.17.</span> <span class="toc-text">文件描述符</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%A3%80%E7%B4%A2%E5%B7%A5%E5%85%B7"><span class="toc-number">1.7.18.</span> <span class="toc-text">检索工具</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Man%E6%96%87%E6%A1%A3"><span class="toc-number">1.7.19.</span> <span class="toc-text">Man文档</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Pahole%E6%9B%B4%E6%96%B0%E5%A4%B1%E8%B4%A5"><span class="toc-number">1.7.20.</span> <span class="toc-text">Pahole更新失败</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%BE%93%E5%85%A5%E6%B3%95"><span class="toc-number">1.7.21.</span> <span class="toc-text">输入法</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Aur%E8%BD%AF%E4%BB%B6%E5%8C%85%E5%9B%9E%E6%BB%9A"><span class="toc-number">1.7.22.</span> <span class="toc-text">Aur软件包回滚</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%B5%8F%E8%A7%88%E5%99%A8"><span class="toc-number">1.7.23.</span> <span class="toc-text">命令行浏览器</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%8E%A9%E5%8E%9F%E7%A5%9E"><span class="toc-number">1.7.24.</span> <span class="toc-text">玩原神</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8flatpak"><span class="toc-number">1.7.24.1.</span> <span class="toc-text">使用flatpak</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%9A%94%E7%A6%BB%E6%B2%99%E7%AE%B1"><span class="toc-number">1.7.25.</span> <span class="toc-text">隔离沙箱</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#bubblewrap"><span class="toc-number">1.7.25.1.</span> <span class="toc-text">bubblewrap</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#firejail"><span class="toc-number">1.7.25.2.</span> <span class="toc-text">firejail</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#USB%E5%91%BD%E4%BB%A4%E8%A1%8C%E9%85%8D%E7%BD%AE"><span class="toc-number">1.8.</span> <span class="toc-text">USB命令行配置</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%95%91%E7%A0%96"><span class="toc-number">1.9.</span> <span class="toc-text">救砖</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%97%A5%E5%BF%97"><span class="toc-number">1.10.</span> <span class="toc-text">日志</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#pacman%E9%85%8D%E7%BD%AE%E9%97%AE%E9%A2%98"><span class="toc-number">1.11.</span> <span class="toc-text">pacman配置问题</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%8F%96%E6%B6%88%E6%8E%89%E4%B8%80%E4%BA%9B%E4%B8%8D%E6%83%B3%E8%A6%81%E6%BA%90"><span class="toc-number">1.11.1.</span> <span class="toc-text">取消掉一些不想要源</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#archlinuxcn%E9%85%8D%E7%BD%AE"><span class="toc-number">1.11.2.</span> <span class="toc-text">archlinuxcn配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%94%99%E8%AF%AF%EF%BC%9AGPGME-%E9%94%99%E8%AF%AF%EF%BC%9A%E6%97%A0%E6%95%B0%E6%8D%AE"><span class="toc-number">1.11.3.</span> <span class="toc-text">错误：GPGME 错误：无数据</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%BD%AF%E4%BB%B6%E5%8D%87%E7%BA%A7-x2F-%E9%99%8D%E7%BA%A7%E9%97%AE%E9%A2%98"><span class="toc-number">1.11.4.</span> <span class="toc-text">软件升级&#x2F;降级问题</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#DNS%E9%85%8D%E7%BD%AE"><span class="toc-number">1.12.</span> <span class="toc-text">DNS配置</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Paccache-%E6%B8%85%E7%90%86%E5%8C%85%E7%BC%93%E5%AD%98"><span class="toc-number">1.12.1.</span> <span class="toc-text">Paccache 清理包缓存</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%97%A0%E6%95%88%E6%88%96%E5%B7%B2%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85"><span class="toc-number">1.12.2.</span> <span class="toc-text">无效或已损坏的软件包</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E6%97%A5%E5%B8%B8%E8%BD%AF%E4%BB%B6"><span class="toc-number">1.13.</span> <span class="toc-text">日常软件</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#VScode"><span class="toc-number">1.13.1.</span> <span class="toc-text">VScode</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#PDF%E6%B5%8F%E8%A7%88"><span class="toc-number">1.13.2.</span> <span class="toc-text">PDF浏览</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BD%91%E6%98%93%E4%BA%91%E9%9F%B3%E4%B9%90%E6%9B%BF%E4%BB%A3"><span class="toc-number">1.13.3.</span> <span class="toc-text">网易云音乐替代</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#rar%E8%A7%A3%E5%8E%8B%E7%BC%A9"><span class="toc-number">1.13.4.</span> <span class="toc-text">rar解压缩</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#OCR"><span class="toc-number">1.13.5.</span> <span class="toc-text">OCR</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%BD%91%E7%9B%98%E6%8C%82%E8%BD%BD"><span class="toc-number">1.13.6.</span> <span class="toc-text">网盘挂载</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#v2raya"><span class="toc-number">1.13.7.</span> <span class="toc-text">v2raya</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#conky"><span class="toc-number">1.13.8.</span> <span class="toc-text">conky</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Terminal-%E7%BE%8E%E5%8C%96"><span class="toc-number">1.13.9.</span> <span class="toc-text">Terminal 美化</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%9F%B3%E9%A2%91%E8%BD%AC%E7%A0%81"><span class="toc-number">1.13.10.</span> <span class="toc-text">音频转码</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%9B%BE%E7%89%87%E7%BC%96%E8%BE%91"><span class="toc-number">1.13.11.</span> <span class="toc-text">图片编辑</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%BD%95%E5%B1%8F%E8%BD%AF%E4%BB%B6"><span class="toc-number">1.13.12.</span> <span class="toc-text">录屏软件</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%B1%8F%E5%B9%95%E5%BD%95%E5%88%B6"><span class="toc-number">1.13.12.1.</span> <span class="toc-text">屏幕录制</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#nvenc%E6%97%A0%E6%B3%95%E4%BD%BF%E7%94%A8%E7%9A%84%E9%97%AE%E9%A2%98"><span class="toc-number">1.13.12.2.</span> <span class="toc-text">nvenc无法使用的问题</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%85%BE%E8%AE%AF%E4%BC%9A%E8%AE%AE"><span class="toc-number">1.13.13.</span> <span class="toc-text">腾讯会议</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Docker"><span class="toc-number">1.13.14.</span> <span class="toc-text">Docker</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#docker-desktop"><span class="toc-number">1.13.14.1.</span> <span class="toc-text">docker-desktop</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#docker-compose"><span class="toc-number">1.13.14.2.</span> <span class="toc-text">docker-compose</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E6%B5%8B%E8%AF%95"><span class="toc-number">1.13.14.3.</span> <span class="toc-text">测试</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E4%BF%AE%E6%94%B9%E9%95%9C%E5%83%8F%E6%BA%90"><span class="toc-number">1.13.14.4.</span> <span class="toc-text">修改镜像源</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#QEMU%E8%99%9A%E6%8B%9F%E5%8C%96"><span class="toc-number">1.13.14.5.</span> <span class="toc-text">QEMU虚拟化</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#DBeaver"><span class="toc-number">1.13.15.</span> <span class="toc-text">DBeaver</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%95%B0%E6%8D%AE%E5%BA%93"><span class="toc-number">1.13.16.</span> <span class="toc-text">数据库</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#PostgresSQL"><span class="toc-number">1.13.16.1.</span> <span class="toc-text">PostgresSQL</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#MySQL"><span class="toc-number">1.13.16.2.</span> <span class="toc-text">MySQL</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%81%8A%E5%A4%A9%E5%B7%A5%E5%85%B7"><span class="toc-number">1.13.17.</span> <span class="toc-text">聊天工具</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#icallinggua"><span class="toc-number">1.13.17.1.</span> <span class="toc-text">icallinggua++</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%98%E7%89%88QQ"><span class="toc-number">1.13.17.2.</span> <span class="toc-text">官版QQ</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Wine-qq"><span class="toc-number">1.13.17.3.</span> <span class="toc-text">Wine-qq</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%BE%AE%E4%BF%A1"><span class="toc-number">1.13.17.4.</span> <span class="toc-text">微信</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%85%BE%E8%AE%AF%E4%BC%9A%E8%AE%AE-1"><span class="toc-number">1.13.17.5.</span> <span class="toc-text">腾讯会议</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Andriod%E8%99%9A%E6%8B%9F%E6%9C%BA"><span class="toc-number">1.13.18.</span> <span class="toc-text">Andriod虚拟机</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Waydroid"><span class="toc-number">1.13.18.1.</span> <span class="toc-text">Waydroid</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BA%8C%E7%BB%B4%E7%A0%81%E7%94%9F%E6%88%90"><span class="toc-number">1.13.19.</span> <span class="toc-text">二维码生成</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#OpenVPN"><span class="toc-number">1.13.20.</span> <span class="toc-text">OpenVPN</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#vivaldi%E5%BC%80%E5%90%AFDoh"><span class="toc-number">1.13.21.</span> <span class="toc-text">vivaldi开启Doh</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Oh-My-Zsh%E6%9B%B4%E6%96%B0%E5%A4%B1%E8%B4%A5%E8%A7%A3%E5%86%B3"><span class="toc-number">1.13.22.</span> <span class="toc-text">Oh My Zsh更新失败解决</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%AD%E6%96%87%E5%AD%97%E4%BD%93%E9%85%8D%E7%BD%AE"><span class="toc-number">1.14.</span> <span class="toc-text">中文字体配置</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A7%91%E5%AD%A6%E8%AE%A1%E7%AE%97"><span class="toc-number">1.15.</span> <span class="toc-text">科学计算</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#miniconda"><span class="toc-number">1.15.1.</span> <span class="toc-text">miniconda</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91"><span class="toc-number">1.16.</span> <span class="toc-text">软件开发</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#Python"><span class="toc-number">1.16.1.</span> <span class="toc-text">Python</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Nodejs"><span class="toc-number">1.16.2.</span> <span class="toc-text">Nodejs</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E8%A7%A3%E5%86%B3%E5%9C%A8nvm%E4%B8%8B%E9%9D%A2vscode%E6%89%BE%E4%B8%8D%E5%88%B0node%E7%9A%84%E6%83%85%E5%86%B5"><span class="toc-number">1.16.2.1.</span> <span class="toc-text">解决在nvm下面vscode找不到node的情况</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Andriod-Studio"><span class="toc-number">1.16.3.</span> <span class="toc-text">Andriod Studio</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Go"><span class="toc-number">1.16.4.</span> <span class="toc-text">Go</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Git"><span class="toc-number">1.16.5.</span> <span class="toc-text">Git</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Java"><span class="toc-number">1.16.6.</span> <span class="toc-text">Java</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Tomcat"><span class="toc-number">1.16.6.1.</span> <span class="toc-text">Tomcat</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#PHP"><span class="toc-number">1.16.7.</span> <span class="toc-text">PHP</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Windows%E5%85%BC%E5%AE%B9%E5%B1%82"><span class="toc-number">1.17.</span> <span class="toc-text">Windows兼容层</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#wine"><span class="toc-number">1.17.1.</span> <span class="toc-text">wine</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#proton"><span class="toc-number">1.17.2.</span> <span class="toc-text">proton</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#CrossOver"><span class="toc-number">1.17.3.</span> <span class="toc-text">CrossOver</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#%E7%9B%B8%E5%85%B3%E8%B5%84%E6%BA%90"><span class="toc-number">1.17.3.1.</span> <span class="toc-text">相关资源</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E5%AE%98%E6%96%B9FAQ"><span class="toc-number">1.17.3.2.</span> <span class="toc-text">官方FAQ</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%E8%BD%AF%E4%BB%B6%E5%AE%89%E8%A3%85"><span class="toc-number">1.18.</span> <span class="toc-text">网络安全软件安装</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%86%85%E7%BD%91%E6%B8%97%E9%80%8F"><span class="toc-number">1.18.1.</span> <span class="toc-text">内网渗透</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Metasploit"><span class="toc-number">1.18.1.1.</span> <span class="toc-text">Metasploit</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#nmap"><span class="toc-number">1.18.1.2.</span> <span class="toc-text">nmap</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Netdiscover"><span class="toc-number">1.18.1.3.</span> <span class="toc-text">Netdiscover</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#fscan"><span class="toc-number">1.18.1.4.</span> <span class="toc-text">fscan</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#evil-winrm"><span class="toc-number">1.18.1.5.</span> <span class="toc-text">evil-winrm</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#responder"><span class="toc-number">1.18.1.6.</span> <span class="toc-text">responder</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#linux-exploit-suggester"><span class="toc-number">1.18.2.</span> <span class="toc-text">linux-exploit-suggester</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Misc-forensic"><span class="toc-number">1.18.3.</span> <span class="toc-text">Misc+forensic</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#foremost%E5%92%8Cbinwalk"><span class="toc-number">1.18.3.1.</span> <span class="toc-text">foremost和binwalk</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#volatility3"><span class="toc-number">1.18.3.2.</span> <span class="toc-text">volatility3</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#16%E8%BF%9B%E5%88%B6%E7%BC%96%E8%BE%91%E5%99%A8"><span class="toc-number">1.18.3.3.</span> <span class="toc-text">16进制编辑器</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#crunch"><span class="toc-number">1.18.3.4.</span> <span class="toc-text">crunch</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#john"><span class="toc-number">1.18.3.5.</span> <span class="toc-text">john</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#hashcat"><span class="toc-number">1.18.3.6.</span> <span class="toc-text">hashcat</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#rarcrack"><span class="toc-number">1.18.3.7.</span> <span class="toc-text">rarcrack</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#hashseep"><span class="toc-number">1.18.3.8.</span> <span class="toc-text">hashseep</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#wireshark"><span class="toc-number">1.18.3.9.</span> <span class="toc-text">wireshark</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#stegdetect"><span class="toc-number">1.18.3.10.</span> <span class="toc-text">stegdetect</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#zip%E4%BF%AE%E5%A4%8D"><span class="toc-number">1.18.3.11.</span> <span class="toc-text">zip修复</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Web%E5%AE%89%E5%85%A8"><span class="toc-number">1.18.4.</span> <span class="toc-text">Web安全</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#Burpsuite%E5%92%8CSqlmap"><span class="toc-number">1.18.4.1.</span> <span class="toc-text">Burpsuite和Sqlmap</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#whatweb"><span class="toc-number">1.18.4.2.</span> <span class="toc-text">whatweb</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#%E9%95%BF%E4%BA%ADxray"><span class="toc-number">1.18.4.3.</span> <span class="toc-text">长亭xray</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#POCsuite"><span class="toc-number">1.18.4.4.</span> <span class="toc-text">POCsuite</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#MitmProxy"><span class="toc-number">1.18.4.5.</span> <span class="toc-text">MitmProxy</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%80%86%E5%90%91"><span class="toc-number">1.18.5.</span> <span class="toc-text">逆向</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#jadx"><span class="toc-number">1.18.5.1.</span> <span class="toc-text">jadx</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#jd-gui"><span class="toc-number">1.18.5.2.</span> <span class="toc-text">jd-gui</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#drozer"><span class="toc-number">1.18.5.3.</span> <span class="toc-text">drozer</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#Detect-it-easy%EF%BC%88DIE%EF%BC%89"><span class="toc-number">1.18.5.4.</span> <span class="toc-text">Detect it easy（DIE）</span></a></li></ol></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AD%97%E5%85%B8"><span class="toc-number">1.18.6.</span> <span class="toc-text">字典</span></a><ol class="toc-child"><li class="toc-item toc-level-4"><a class="toc-link" href="#rockyou"><span class="toc-number">1.18.6.1.</span> <span class="toc-text">rockyou</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#seclist"><span class="toc-number">1.18.6.2.</span> <span class="toc-text">seclist</span></a></li></ol></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E7%A1%AC%E4%BB%B6%E7%9B%B8%E5%85%B3"><span class="toc-number">1.19.</span> <span class="toc-text">硬件相关</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%A7%A6%E6%91%B8%E6%9D%BF%E6%89%8B%E5%8A%BF"><span class="toc-number">1.19.1.</span> <span class="toc-text">触摸板手势</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B3%E6%8E%89%E5%85%B3%E6%9C%BAbeep"><span class="toc-number">1.19.2.</span> <span class="toc-text">关掉关机beep</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E8%8B%B1%E4%BC%9F%E8%BE%BE%E5%BC%80%E6%BA%90%E9%A9%B1%E5%8A%A8%E5%AE%89%E8%A3%85"><span class="toc-number">1.19.3.</span> <span class="toc-text">英伟达开源驱动安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E6%9F%A5%E7%9C%8B%E6%98%BE%E5%8D%A1%E4%BF%A1%E6%81%AF"><span class="toc-number">1.19.4.</span> <span class="toc-text">查看显卡信息</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E4%B8%80%E4%BA%9B%E5%A5%BD%E7%8E%A9%E7%9A%84%E4%B8%9C%E8%A5%BF"><span class="toc-number">1.20.</span> <span class="toc-text">一些好玩的东西</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#%E5%B7%B2%E7%9F%A5%E9%97%AE%E9%A2%98"><span class="toc-number">1.21.</span> <span class="toc-text">已知问题</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Linux%E7%9F%A5%E8%AF%86%E8%A1%A5%E5%85%85"><span class="toc-number">1.22.</span> <span class="toc-text">Linux知识补充</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%85%B3%E4%BA%8E%E5%86%85%E6%A0%B8%E5%A4%B4%E7%9A%84%E7%9F%A5%E8%AF%86"><span class="toc-number">1.22.1.</span> <span class="toc-text">关于内核头的知识</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%88%86%E5%8C%BA%E7%9F%A5%E8%AF%86"><span class="toc-number">1.22.2.</span> <span class="toc-text">分区知识</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#Linux%E8%8B%A6%E9%9A%BE%E5%93%B2%E5%AD%A6"><span class="toc-number">1.22.3.</span> <span class="toc-text">Linux苦难哲学</span></a></li></ol></li></ol></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/posts/3e9f.html" title="RMM观察与初探"><img src="https://z1.ax1x.com/2023/10/21/piF47TA.md.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="RMM观察与初探"/></a><div class="content"><a class="title" href="/posts/3e9f.html" title="RMM观察与初探">RMM观察与初探</a><time datetime="2023-10-21T04:30:00.000Z" title="发表于 2023-10-21 12:30:00">2023-10-21</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/5e44.html" title="计算机网络课设——UDP/TCP/TLS Socket实验"><img src="https://s1.ax1x.com/2023/09/09/pP6qXOU.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="计算机网络课设——UDP/TCP/TLS Socket实验"/></a><div class="content"><a class="title" href="/posts/5e44.html" title="计算机网络课设——UDP/TCP/TLS Socket实验">计算机网络课设——UDP/TCP/TLS Socket实验</a><time datetime="2023-09-09T07:10:00.000Z" title="发表于 2023-09-09 15:10:00">2023-09-09</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/cd44.html" title="JQuery的XSS初探"><img src="https://s1.ax1x.com/2023/09/08/pPyvO0O.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JQuery的XSS初探"/></a><div class="content"><a class="title" href="/posts/cd44.html" title="JQuery的XSS初探">JQuery的XSS初探</a><time datetime="2023-09-08T04:30:00.000Z" title="发表于 2023-09-08 12:30:00">2023-09-08</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/5862.html" title="生产实习记录"><img src="https://s1.ax1x.com/2023/09/02/pPBH058.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="生产实习记录"/></a><div class="content"><a class="title" href="/posts/5862.html" title="生产实习记录">生产实习记录</a><time datetime="2023-09-02T13:51:00.000Z" title="发表于 2023-09-02 21:51:00">2023-09-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/posts/9a9b.html" title="Fedora-CoreOS配置与试用（2023年）"><img src="https://s1.ax1x.com/2023/08/28/pPa8tlF.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Fedora-CoreOS配置与试用（2023年）"/></a><div class="content"><a class="title" href="/posts/9a9b.html" title="Fedora-CoreOS配置与试用（2023年）">Fedora-CoreOS配置与试用（2023年）</a><time datetime="2023-08-28T11:35:00.000Z" title="发表于 2023-08-28 19:35:00">2023-08-28</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2019 - 2023 By MocusEZ</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener external nofollow noreferrer" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div><div class="footer_custom_text"><a href="http://beian.miit.gov.cn/" rel="external nofollow noreferrer"  style="color:#f72b07" target="_blank">闽ICP备2021003009号</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><a id="to_comment" href="#post-comment" title="直达评论"><i class="fas fa-comments"></i></a><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span>  数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"><script>function loadWaline () {
  function insertCSS () {
    const link = document.createElement("link")
    link.rel = "stylesheet"
    link.href = "https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.min.css"
    document.head.appendChild(link)
  }

  function initWaline () {
    const waline = Waline.init(Object.assign({
      el: '#waline-wrap',
      serverURL: 'https://waline.mocusez.site',
      pageview: ,
      dark: 'html[data-theme="dark"]',
      path: window.location.pathname,
      comment: false,
    }, null))
  }

  if (typeof Waline === 'function') initWaline()
  else {
    insertCSS()
    getScript('https://cdn.jsdelivr.net/npm/@waline/client/dist/waline.min.js').then(initWaline)
  }
}

if ('Waline' === 'Waline' || !false) {
  if (false) btf.loadComment(document.getElementById('waline-wrap'),loadWaline)
  else setTimeout(loadWaline, 0)
} else {
  function loadOtherComment () {
    loadWaline()
  }
}</script></div><script>(function(i,s,o,g,r,a,m){i["DaoVoiceObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;a.charset="utf-8";m.parentNode.insertBefore(a,m)})(window,document,"script",('https:' == document.location.protocol ? 'https:' : 'http:') + "//widget.daovoice.io/widget/1df8ba05.js","daovoice")
</script><script>var isChatBtn = false
daovoice('init', {
  app_id: '1df8ba05',},{
  launcher: { 
     disableLauncherIcon: isChatBtn // 悬浮 ICON 是否显示
  },
});
daovoice('update');

if (isChatBtn) {
  var chatBtnFn = () => {
    var chatBtn = document.getElementById("chat_btn")
    chatBtn.addEventListener("click", function(){
      daovoice('show')
    });
  }
  chatBtnFn()
} else {
  if (false) {
    function chatBtnHide () {
      daovoice('update', {},{
        launcher: { 
        disableLauncherIcon: true // 悬浮 ICON 是否显示
        },
      });
    }
    function chatBtnShow () {
      daovoice('update', {},{
        launcher: { 
        disableLauncherIcon: false // 悬浮 ICON 是否显示
        },
      });
    }
  }
}</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>